MCPcopy
hub / github.com/livebud/bud / TestMissingGenerator

Function TestMissingGenerator

framework/generator/generator_test.go:132–146  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

130}
131
132func TestMissingGenerator(t *testing.T) {
133 is := is.New(t)
134 ctx := context.Background()
135 dir := t.TempDir()
136 td := testdir.New(dir)
137 td.Files["generator/web/transform/transform.go"] = `
138 package transform
139 `
140 is.NoErr(td.Write(ctx))
141 cli := testcli.New(dir)
142 _, err := cli.Run(ctx, "build", "--embed=false")
143 is.NoErr(err)
144 is.NoErr(td.NotExists("bud/command/generate/main.go"))
145 is.NoErr(td.NotExists("bud/command/generate/main"))
146}
147
148func TestMissingMatchingMethod(t *testing.T) {
149 is := is.New(t)

Callers

nothing calls this directly

Calls 7

NewFunction · 0.92
NewFunction · 0.92
NewFunction · 0.92
NoErrMethod · 0.80
NotExistsMethod · 0.80
RunMethod · 0.65
WriteMethod · 0.45

Tested by

no test coverage detected