feat(backend): establish gin sqlite service skeleton

This commit is contained in:
QiuSW
2026-07-25 22:29:56 +08:00
parent 84f2da3cf7
commit ab21219a07
32 changed files with 1854 additions and 42 deletions
+16
View File
@@ -0,0 +1,16 @@
package main
import "testing"
func TestRunRejectsMissingAndUnknownCommandsBeforeOpeningDatabase(t *testing.T) {
tests := [][]string{
nil,
{"unknown"},
{"up", "extra"},
}
for _, arguments := range tests {
if err := run(arguments); err == nil {
t.Fatalf("run(%v) error = nil", arguments)
}
}
}