Add application workflow and lead analytics
Test and publish / test (push) Successful in 2m33s
Test and publish / publish (push) Successful in 11m9s

This commit is contained in:
2026-10-23 20:45:48 +01:00
parent d0074aea46
commit 1147bc5697
35 changed files with 4337 additions and 131 deletions
+17
View File
@@ -50,6 +50,23 @@ func TestLeadFilter(t *testing.T) {
}
}
func TestValidateBulkLeadIDs(t *testing.T) {
for name, ids := range map[string][]int{
"empty": nil,
"nonpositive": {1, 0},
"duplicate": {1, 1},
} {
t.Run(name, func(t *testing.T) {
if err := validateBulkLeadIDs(ids); err == nil {
t.Fatal("expected validation error")
}
})
}
if err := validateBulkLeadIDs([]int{3, 1, 2}); err != nil {
t.Fatalf("valid ids rejected: %v", err)
}
}
func TestContainsWord(t *testing.T) {
cases := []struct {
text, word string