hm sqlite transactions dont play with begin commit

This commit is contained in:
Bel LaPointe
2025-04-27 11:12:46 -06:00
parent b85df7bd31
commit e6d9e356ca
2 changed files with 56 additions and 27 deletions

View File

@@ -51,6 +51,36 @@ func TestFeeds(t *testing.T) {
if err != nil {
t.Fatal("cannot get:", err)
}
t.Errorf("%+v", got)
t.Logf("%+v", got)
if got.Entry.ID == "" {
t.Error("no entry.id")
}
if got.Entry.Created.IsZero() {
t.Error("no entry.created")
}
if got.Entry.Updated.IsZero() {
t.Error("no entry.updated")
}
if !got.Entry.Deleted.IsZero() {
t.Error("entry.deleted")
}
if got.Version.Created.IsZero() {
t.Error("no version.created")
}
if got.Version.URL != "url" {
t.Error("no version.url")
}
if got.Version.Cron != "cron" {
t.Error("no version.cron")
}
if !got.Execution.Executed.IsZero() {
t.Error("execution.executed")
}
if !got.Execution.Version.IsZero() {
t.Error("execution.version")
}
})
}