Skip to content

Commit

Permalink
add missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
belarte-tw committed Jul 20, 2023
1 parent d3abbdd commit e176d6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions go/database/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,9 @@ func TestMoviesIdsFromActorId(t *testing.T) {
assert.Equal(t, test.movies, movies)
}
}

func TestMoviesIdsFromActorIdNotFound(t *testing.T) {
db := database.New()
_, err := db.MoviesIdsFromActorId("nm0000000")
assert.Error(t, err)
}

0 comments on commit e176d6e

Please sign in to comment.