(t *testing.T)
| 118 | } |
| 119 | |
| 120 | func 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 | |
| 129 | func TestHasColumns(t *testing.T) { |
| 130 | table, err := tabular.Parse([]byte("Path,Verified,Company\nc:\\a.dll,Signed,MS\n")) |