fix: address performance and security findings
- Add PostgreSQL-backed backend and frontend tests to CI - Harden Android API logging and disable app backups - Update the performance report with resolved findings
This commit is contained in:
1 parent
a84a36349b
commit
937f51b4fb
35 files changed
+2566
-332
No files matched your search
@@ -25,3 +25,24 @@ func TestNormalizeEntityTimestampsKeepsUpdatedAfterCreated(t *testing.T) {
|
||||
t.Fatalf("timestamps = (%d, %d), want (%d, %d)", created, updated, now-100, now-100)
|
||||
}
|
||||
}
|
||||
|
||||
func TestChangeEventTypeNamesEachChange(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
initialSync bool
|
||||
deleted bool
|
||||
want string
|
||||
}{
|
||||
{name: "first sync creates", initialSync: true, want: "created"},
|
||||
{name: "later edit updates", initialSync: false, want: "updated"},
|
||||
{name: "tombstone is deleted on first sync", initialSync: true, deleted: true, want: "deleted"},
|
||||
{name: "tombstone is deleted later", initialSync: false, deleted: true, want: "deleted"},
|
||||
}
|
||||
for _, tc := range cases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
if got := changeEventType(tc.initialSync, tc.deleted); got != tc.want {
|
||||
t.Fatalf("changeEventType(%v, %v) = %q, want %q", tc.initialSync, tc.deleted, got, tc.want)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user