Skip to content

Commit

Permalink
添加域名枚举测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
boyhack committed Jun 21, 2024
1 parent 6985640 commit 9b431e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package runner

import (
"context"
"github.com/boy-hack/ksubdomain/core"
"github.com/boy-hack/ksubdomain/core/gologger"
"github.com/boy-hack/ksubdomain/core/options"
"github.com/boy-hack/ksubdomain/runner/outputter"
Expand Down Expand Up @@ -47,14 +48,14 @@ func TestRunner(t *testing.T) {
r.Close()
}

func TestRunnerMany(t *testing.T) {
process := processbar.FakeScreenProcess{}
func TestRunnerEnum(t *testing.T) {
process := processbar.ScreenProcess{}
screenPrinter, _ := output.NewScreenOutputNoWidth()
domains := []string{"stu.baidu.com", "haokan.baidu.com"}
domains := core.GetDefaultSubdomainData()
domainChanel := make(chan string)
go func() {
for _, d := range domains {
domainChanel <- d
domainChanel <- d + ".baidu.com"
}
close(domainChanel)
}()
Expand Down

0 comments on commit 9b431e0

Please sign in to comment.