Skip to content

Commit

Permalink
test(schema): add test for nil case in idList
Browse files Browse the repository at this point in the history
  • Loading branch information
0xankit committed Dec 14, 2022
1 parent 9d3e003 commit 3eb6751
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schema/lists/base/idList_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ func Test_idList_GetList(t *testing.T) {
fields fields
want []ids.ID
}{
{"+ve with nil", fields{NewList()}, []ids.ID{}},
{"+ve with empty List", fields{NewList()}, []ids.ID{}},
{"+ve with nil List", fields{nil}, []ids.ID{}},
{"+ve", fields{NewList(idsToListables([]ids.ID{NewStringID("Data")}...)...)}, []ids.ID{NewStringID("Data").(ids.ID)}},
}
for _, tt := range tests {
Expand Down

0 comments on commit 3eb6751

Please sign in to comment.