MCPcopy
hub / github.com/apache/devlake / TestConvertSliceInvalidSlice

Function TestConvertSliceInvalidSlice

backend/core/utils/json_test.go:104–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

102}
103
104func TestConvertSliceInvalidSlice(t *testing.T) {
105 value := 1
106
107 _, err := Convert[[]int](value)
108
109 assert.Error(t, err)
110 assert.Contains(t, err.Error(), "Value is not a slice")
111}

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected