Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
FemiNoviaLina committed Oct 8, 2024
1 parent e7b296d commit baf59f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/schema/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ func TestAppendIfUnique(t *testing.T) {
fmt.Println(AppendIfUnique([]string{"1", "2", "3"}, []string{"3", "4"}))
assert.ElementsMatch(t, AppendIfUnique([]string{"1", "2", "3"}, []string{"3", "4"}), []string{"1", "2", "3", "4"})
}

func TestGetNamespace(t *testing.T) {
fmt.Println(GetNamespace("project"))
assert.Equal(t, "shield/project", GetNamespace("project"))
fmt.Println(GetNamespace("entropy/firehose"))
assert.Equal(t, "entropy/firehose", GetNamespace("entropy/firehose"))
}

0 comments on commit baf59f3

Please sign in to comment.