Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jun 6, 2024
1 parent f05ba4a commit f20490e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package targetloading contains common code to load input.
// Package targetloading contains common code to load richer-input targets.
package targetloading

import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func TestInputLoaderInputNoneWithStaticInputs(t *testing.T) {
func TestInputLoaderInputNoneWithFilesInputs(t *testing.T) {
il := &Loader{
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/inputloader2.txt",
"testdata/loader1.txt",
"testdata/loader2.txt",
},
InputPolicy: model.InputNone,
}
Expand All @@ -54,8 +54,8 @@ func TestInputLoaderInputNoneWithBothInputs(t *testing.T) {
il := &Loader{
StaticInputs: []string{"https://www.google.com/"},
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/inputloader2.txt",
"testdata/loader1.txt",
"testdata/loader2.txt",
},
InputPolicy: model.InputNone,
}
Expand Down Expand Up @@ -101,8 +101,8 @@ func TestInputLoaderInputOptionalWithInput(t *testing.T) {
il := &Loader{
StaticInputs: []string{"https://www.google.com/"},
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/inputloader2.txt",
"testdata/loader1.txt",
"testdata/loader2.txt",
},
InputPolicy: model.InputOptional,
}
Expand Down Expand Up @@ -150,9 +150,9 @@ func TestInputLoaderInputOptionalNonexistentFile(t *testing.T) {
il := &Loader{
StaticInputs: []string{"https://www.google.com/"},
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/loader1.txt",
"/nonexistent",
"testdata/inputloader2.txt",
"testdata/loader2.txt",
},
InputPolicy: model.InputOptional,
}
Expand All @@ -170,8 +170,8 @@ func TestInputLoaderInputStrictlyRequiredWithInput(t *testing.T) {
il := &Loader{
StaticInputs: []string{"https://www.google.com/"},
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/inputloader2.txt",
"testdata/loader1.txt",
"testdata/loader2.txt",
},
InputPolicy: model.InputStrictlyRequired,
}
Expand Down Expand Up @@ -233,9 +233,9 @@ func TestInputLoaderInputStrictlyRequiredWithEmptyFile(t *testing.T) {
il := &Loader{
InputPolicy: model.InputStrictlyRequired,
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/inputloader3.txt", // we want it before inputloader2.txt
"testdata/inputloader2.txt",
"testdata/loader1.txt",
"testdata/loader3.txt", // we want it before loader2.txt
"testdata/loader2.txt",
},
}
ctx := context.Background()
Expand All @@ -253,8 +253,8 @@ func TestInputLoaderInputOrStaticDefaultWithInput(t *testing.T) {
ExperimentName: "dnscheck",
StaticInputs: []string{"https://www.google.com/"},
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/inputloader2.txt",
"testdata/loader1.txt",
"testdata/loader2.txt",
},
InputPolicy: model.InputOrStaticDefault,
}
Expand Down Expand Up @@ -303,9 +303,9 @@ func TestInputLoaderInputOrStaticDefaultWithEmptyFile(t *testing.T) {
ExperimentName: "dnscheck",
InputPolicy: model.InputOrStaticDefault,
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/inputloader3.txt", // we want it before inputloader2.txt
"testdata/inputloader2.txt",
"testdata/loader1.txt",
"testdata/loader3.txt", // we want it before loader2.txt
"testdata/loader2.txt",
},
}
ctx := context.Background()
Expand Down Expand Up @@ -400,8 +400,8 @@ func TestInputLoaderInputOrQueryBackendWithInput(t *testing.T) {
il := &Loader{
StaticInputs: []string{"https://www.google.com/"},
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/inputloader2.txt",
"testdata/loader1.txt",
"testdata/loader2.txt",
},
InputPolicy: model.InputOrQueryBackend,
}
Expand Down Expand Up @@ -473,9 +473,9 @@ func TestInputLoaderInputOrQueryBackendWithEmptyFile(t *testing.T) {
il := &Loader{
InputPolicy: model.InputOrQueryBackend,
SourceFiles: []string{
"testdata/inputloader1.txt",
"testdata/inputloader3.txt", // we want it before inputloader2.txt
"testdata/inputloader2.txt",
"testdata/loader1.txt",
"testdata/loader3.txt", // we want it before loader2.txt
"testdata/loader2.txt",
},
}
ctx := context.Background()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f20490e

Please sign in to comment.