MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / TestGetReconciliation

Function TestGetReconciliation

api/reconciliation_api_test.go:93–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

91}
92
93func TestGetReconciliation(t *testing.T) {
94 router, _, err := setupRouter(t)
95 if err != nil {
96 t.Fatalf("Failed to setup router: %v", err)
97 }
98
99 t.Run("Reconciliation not found", func(t *testing.T) {
100 req := httptest.NewRequest("GET", "/reconciliation/rec_nonexistent", nil)
101 resp := httptest.NewRecorder()
102 router.ServeHTTP(resp, req)
103 assert.Equal(t, http.StatusNotFound, resp.Code)
104 })
105}
106
107func TestCreateMatchingRule(t *testing.T) {
108 router, _, err := setupRouter(t)

Callers

nothing calls this directly

Calls 1

setupRouterFunction · 0.85

Tested by

no test coverage detected