feat: add assessment, privacy and support flows
This commit is contained in:
1 parent
ee3738ee73
commit
e4f24fa202
339 files changed
+56454
-1126
No files matched your search
@@ -43,6 +43,19 @@ func TestMapAssessmentErrorRecognizesBankConstraints(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestPinnedFamilyLookupMapsOnlyMissingFamiliesToUnavailable(t *testing.T) {
|
||||
missing := mapPinnedFamilyLookupError(errors.Join(errors.New("select pinned family"), outbound.ErrAssessmentFamilyNotFound))
|
||||
if !errors.Is(missing, outbound.ErrAssessmentSelectionUnavailable) {
|
||||
t.Fatalf("map missing pinned family error = %v, want ErrAssessmentSelectionUnavailable", missing)
|
||||
}
|
||||
|
||||
transient := errors.New("database connection reset")
|
||||
got := mapPinnedFamilyLookupError(transient)
|
||||
if !errors.Is(got, transient) || errors.Is(got, outbound.ErrAssessmentSelectionUnavailable) {
|
||||
t.Fatalf("map transient pinned family error = %v, want original infrastructure error", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLockCategoryWorksOnlyInsideATransaction(t *testing.T) {
|
||||
// A repository without queries proves that no statement runs.
|
||||
standalone := assessmentBankRepository{transactional: false}
|
||||
|
||||
Reference in new issue
Block a user