(t *testing.T)
| 323 | } |
| 324 | |
| 325 | func TestExtensions(t *testing.T) { |
| 326 | t.Parallel() |
| 327 | runDiffTest(t, "testdata/extensions", "extensions.txtar", WithIncludeTypes("pkg.Foo")) |
| 328 | runDiffTest(t, "testdata/extensions", "extensions-excluded.txtar", WithExcludeKnownExtensions(), WithIncludeTypes("pkg.Foo")) |
| 329 | // Including a message does not pull in extensions declared inside it, but the |
| 330 | // recursive glob does: "other.Embedded.**" additionally includes the nested |
| 331 | // extension other.Embedded.from_other_file (and thus its extendee pkg.Foo). |
| 332 | runDiffTest(t, "testdata/extensions", "embedded.txtar", WithExcludeKnownExtensions(), WithIncludeTypes("other.Embedded")) |
| 333 | runDiffTest(t, "testdata/extensions", "embedded.recursive.txtar", WithExcludeKnownExtensions(), WithIncludeTypes("other.Embedded.**")) |
| 334 | } |
| 335 | |
| 336 | func TestPackages(t *testing.T) { |
| 337 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…