MCPcopy Create free account
hub / github.com/bufbuild/buf / TestExtensions

Function TestExtensions

private/bufpkg/bufimage/bufimageutil/bufimageutil_test.go:325–334  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

323}
324
325func 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
336func TestPackages(t *testing.T) {
337 t.Parallel()

Callers

nothing calls this directly

Calls 3

runDiffTestFunction · 0.85
WithIncludeTypesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…