Skip to content

Commit 72cc84c

Browse files
committed
chore: add missing test for PersonConceptAndCount
1 parent ee41775 commit 72cc84c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/models_tests/models_test.go

+14
Original file line numberDiff line numberDiff line change
@@ -916,3 +916,17 @@ func TestAddTimeoutToQuery(t *testing.T) {
916916
t.Errorf("Expected result and NO error")
917917
}
918918
}
919+
920+
func TestPersonConceptAndCountString(t *testing.T) {
921+
a := models.PersonConceptAndCount{
922+
PersonId: 1,
923+
ConceptId: 2,
924+
Count: 3,
925+
}
926+
927+
expected := "(person_id=1, concept_id=2, count=3)"
928+
if a.String() != expected {
929+
t.Errorf("Expected %s, found %s", expected, a.String())
930+
}
931+
932+
}

0 commit comments

Comments
 (0)