blob: 0f4df80fa67897f63f28f0fb100ac837efb67004 [file] [log] [blame]
[
{
"input": "blah",
"match": false,
"want": null
},
{
"input": "bazel-out/foo/bin/nonce%/github.com/kythe/kythe/blah.a",
"match": true,
"want": {
"corpus": "github.com/kythe/kythe",
"path": "blah"
}
},
{
"input": "bazel-out/foo/bin/nonce%/bitbucket.org/creachadair/stringset.a",
"match": true,
"want": {"corpus": "bitbucket.org/creachadair/stringset"}
},
{
"_note": "cgo output has this pattern.",
"input": "bazel-out/foo/bin/nonce%/github.com/google/brotli/go/cbrotli.a~partial.a",
"match": true,
"want": {
"corpus": "github.com/google/brotli",
"path": "go/cbrotli"
}
},
{
"_note": "cgo output has this pattern as well.",
"input": "bazel-out/foo/bin/nonce%/github.com/bar/baz.a~partial.a",
"match": true,
"want": {"corpus": "github.com/bar/baz"}
},
{
"input": "bazel-out/itty/bin/nonce%/bitbucket.org/nobble/fleem/wharrgarbl.a",
"match": true,
"want": {"corpus": "bitbucket.org/nobble/fleem", "path": "wharrgarbl"}
},
{
"input": "bazel-out/foo/genfiles/kythe/proto/analysis.pb.go",
"match": true,
"want": {
"root": "bazel-out/genfiles",
"path": "kythe/proto/analysis.pb.go"
}
},
{
"input": "external/go_sdk/pkg/linux_amd64/io/ioutil.a",
"match": true,
"want": {
"corpus": "golang.org",
"path": "io/ioutil"
}
},
{
"_note": "Go generated test binary wrappers have this pattern.",
"input": "bazel-out/foo/bin/bar/baz/nonce/quux%/testmain.go",
"match": true,
"want": {
"root": "bazel-out/bin",
"path": "bar/baz/quux/testmain.go"
}
}
]