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

Function TestHasColumns

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

Source from the content-addressed store, hash-verified

127}
128
129func TestHasColumns(t *testing.T) {
130 table, err := tabular.Parse([]byte("Path,Verified,Company\nc:\\a.dll,Signed,MS\n"))
131 require.NoError(t, err)
132
133 assert.True(t, table.HasColumns(colPath, colVerified))
134 assert.False(t, table.HasColumns(colPath, "Nonexistent"))
135}
136
137func TestColumn(t *testing.T) {
138 table, err := tabular.Parse([]byte("Path,Verified\nc:\\a.dll,Signed\n,Unsigned\nc:\\b.dll,Signed\n"))

Callers

nothing calls this directly

Calls 2

ParseFunction · 0.92
HasColumnsMethod · 0.80

Tested by

no test coverage detected