diff --git a/pkg/eval/vals/tester.go b/pkg/eval/vals/tester.go index b4026ca0..edc78f60 100644 --- a/pkg/eval/vals/tester.go +++ b/pkg/eval/vals/tester.go @@ -13,6 +13,11 @@ type Tester struct { // TestValue returns a ValueTester. func TestValue(t *testing.T, v any) Tester { + // Hack to get test coverage on the marker method IsStructMap, which is + // never invoked. + if m, ok := v.(StructMap); ok { + m.IsStructMap() + } return Tester{t, v} }