Test docstrings
This commit is contained in:
@@ -111,6 +111,8 @@ func findLastSegment(path, prefix string) int {
|
||||
return -1
|
||||
}
|
||||
|
||||
// TestServices_ListAll verifies that listing all services returns only active services,
|
||||
// filtering out inactive services from the response.
|
||||
func TestServices_ListAll(t *testing.T) {
|
||||
cleanup := setupTestDB(t)
|
||||
defer cleanup()
|
||||
@@ -157,6 +159,8 @@ func TestServices_ListAll(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestServices_EligibleForUser_AgeFilter verifies that eligible services are filtered based on the user's age,
|
||||
// excluding services with minimum_age_required higher than the user's age.
|
||||
func TestServices_EligibleForUser_AgeFilter(t *testing.T) {
|
||||
cleanup := setupTestDB(t)
|
||||
defer cleanup()
|
||||
@@ -210,6 +214,8 @@ func TestServices_EligibleForUser_AgeFilter(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestServices_EligibleForUser_PatchTest verifies that services requiring patch tests include a
|
||||
// PatchTestStatus field set to 'ok' when the user has completed a valid patch test for that service.
|
||||
func TestServices_EligibleForUser_PatchTest(t *testing.T) {
|
||||
cleanup := setupTestDB(t)
|
||||
defer cleanup()
|
||||
@@ -303,6 +309,8 @@ func TestServices_EligibleForUser_PatchTest(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestContact_ReturnsInfo verifies that the contact info endpoint returns the salon's contact
|
||||
// details (name, phone, email, role) from the first admin user in the database.
|
||||
func TestContact_ReturnsInfo(t *testing.T) {
|
||||
cleanup := setupTestDB(t)
|
||||
defer cleanup()
|
||||
|
||||
Reference in New Issue
Block a user