Skip to content

Commit

Permalink
fixed table_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
NimbleArchitect committed Aug 3, 2022
1 parent 12436a1 commit 6b7b4a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/plugin/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type tableSetHeaderTest struct {
}

var tableSetHeaderTests = []tableSetHeaderTest{
{[]string{"a", "b"}, 2, []int{0, 1}, []headerRow{{matchFilter{"", 0, false, false}, 3, 0, false, 0, "a"}, {matchFilter{"", 0, false, false}, 3, 0, false, 0, "b"}}},
{[]string{"a", "b"}, 2, []int{0, 1}, []headerRow{{3, 0, false, 0, "a"}, {3, 0, false, 0, "b"}}},
}

func TestTableSetHeader(t *testing.T) {
Expand Down Expand Up @@ -111,11 +111,11 @@ type hideColumnTest struct {
expected []headerRow
}

// []headerRow{{matchFilter{"", 0, false, false}, 3, 0, false, 0, "a"}, {matchFilter{"", 0, false, false}, 3, 0, false, 0, "b"}}}
// []headerRow{{ 3, 0, false, 0, "a"}, { 3, 0, false, 0, "b"}}}
var hideColumnTests = []hideColumnTest{
{2, []headerRow{{matchFilter{"", 0, false, false}, 3, 0, false, 0, "A"}, {matchFilter{"", 0, false, false}, 3, 0, false, 0, "B"}, {matchFilter{"", 0, false, false}, 3, 0, true, 0, "C"}}},
{2, []headerRow{{matchFilter{"", 0, false, false}, 3, 0, false, 0, "A"}, {matchFilter{"", 0, false, false}, 3, 0, false, 0, "B"}, {matchFilter{"", 0, false, false}, 3, 0, true, 0, "C"}}},
{0, []headerRow{{matchFilter{"", 0, false, false}, 3, 0, true, 0, "A"}, {matchFilter{"", 0, false, false}, 3, 0, false, 0, "B"}, {matchFilter{"", 0, false, false}, 3, 0, true, 0, "C"}}},
{2, []headerRow{{3, 0, false, 0, "A"}, {3, 0, false, 0, "B"}, {3, 0, true, 0, "C"}}},
{2, []headerRow{{3, 0, false, 0, "A"}, {3, 0, false, 0, "B"}, {3, 0, true, 0, "C"}}},
{0, []headerRow{{3, 0, true, 0, "A"}, {3, 0, false, 0, "B"}, {3, 0, true, 0, "C"}}},
}

func TestHideColumn(t *testing.T) {
Expand Down

0 comments on commit 6b7b4a8

Please sign in to comment.