MCPcopy
hub / github.com/MadAppGang/dingo / TestLambdaCodeGen_NilExpr

Function TestLambdaCodeGen_NilExpr

pkg/codegen/lambda_test.go:263–270  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

261}
262
263func TestLambdaCodeGen_NilExpr(t *testing.T) {
264 gen := NewLambdaCodeGen(nil)
265 result := gen.Generate()
266
267 if len(result.Output) != 0 {
268 t.Errorf("Expected empty code for nil expr, got: %s", string(result.Output))
269 }
270}
271
272func TestLambdaCodeGen_IntegrationWithGenerateExpr(t *testing.T) {
273 // Test that lambda codegen integrates with GenerateExpr dispatcher

Callers

nothing calls this directly

Calls 3

GenerateMethod · 0.95
NewLambdaCodeGenFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected