fix tests to use location instead of file.Reference

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2020-11-17 12:37:12 -05:00
parent b694dacb21
commit aa0d444fd4
40 changed files with 327 additions and 382 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ func (cfg *Application) Build() error {
cfg.PresenterOpt = presenterOption
// set the source
scopeOption := source.ParseOption(cfg.Scope)
scopeOption := source.ParseScope(cfg.Scope)
if scopeOption == source.UnknownScope {
return fmt.Errorf("bad --scope value '%s'", cfg.Scope)
}
+1 -1
View File
@@ -1,6 +1,6 @@
package file
// Source: https://research.swtch.com/glob.go
// Locations: https://research.swtch.com/glob.go
func GlobMatch(pattern, name string) bool {
px := 0
nx := 0