Skip to content

Commit ae1a824

Browse files
committed
chore: add missing test for PersonConceptAndCount
1 parent cf65170 commit ae1a824

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
@@ -1014,3 +1014,17 @@ func TestAddTimeoutToQuery(t *testing.T) {
10141014
t.Errorf("Expected result and NO error")
10151015
}
10161016
}
1017+
1018+
func TestPersonConceptAndCountString(t *testing.T) {
1019+
a := models.PersonConceptAndCount{
1020+
PersonId: 1,
1021+
ConceptId: 2,
1022+
Count: 3,
1023+
}
1024+
1025+
expected := "(person_id=1, concept_id=2, count=3)"
1026+
if a.String() != expected {
1027+
t.Errorf("Expected %s, found %s", expected, a.String())
1028+
}
1029+
1030+
}

0 commit comments

Comments
 (0)