MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / TestTableJSONEmptyIsArray

Function TestTableJSONEmptyIsArray

pkg/tabular/tabular_test.go:120–127  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

118}
119
120func TestTableJSONEmptyIsArray(t *testing.T) {
121 table, err := tabular.Parse([]byte("Path,Verified\n"))
122 require.NoError(t, err)
123
124 out, err := table.JSON()
125 require.NoError(t, err)
126 assert.Equal(t, "[]", string(out))
127}
128
129func TestHasColumns(t *testing.T) {
130 table, err := tabular.Parse([]byte("Path,Verified,Company\nc:\\a.dll,Signed,MS\n"))

Callers

nothing calls this directly

Calls 2

ParseFunction · 0.92
JSONMethod · 0.45

Tested by

no test coverage detected