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

Function TestOneof

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

Source from the content-addressed store, hash-verified

203}
204
205func TestOneof(t *testing.T) {
206 t.Parallel()
207 t.Run("exclude-partial", func(t *testing.T) {
208 t.Parallel()
209 runDiffTest(t, "testdata/oneofs", "pkg.Foo.exclude-partial.txtar", WithIncludeTypes("pkg.Foo"), WithExcludeTypes("pkg.FooEnum", "pkg.Bar.BarNested"))
210 })
211 t.Run("exclude-bar", func(t *testing.T) {
212 t.Parallel()
213 runDiffTest(t, "testdata/oneofs", "pkg.Foo.exclude-bar.txtar", WithIncludeTypes("pkg.Foo"), WithExcludeTypes("pkg.FooEnum", "pkg.Bar"))
214 })
215}
216
217func TestOptions(t *testing.T) {
218 t.Parallel()

Callers

nothing calls this directly

Calls 4

runDiffTestFunction · 0.85
WithIncludeTypesFunction · 0.85
WithExcludeTypesFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…