(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestCreateMatchingRule(t *testing.T) { |
| 108 | router, _, err := setupRouter(t) |
| 109 | if err != nil { |
| 110 | t.Fatalf("Failed to setup router: %v", err) |
| 111 | } |
| 112 | |
| 113 | t.Run("Invalid JSON", func(t *testing.T) { |
| 114 | req := httptest.NewRequest("POST", "/reconciliation/matching-rules", bytes.NewReader([]byte("invalid json"))) |
| 115 | req.Header.Set("Content-Type", "application/json") |
| 116 | resp := httptest.NewRecorder() |
| 117 | router.ServeHTTP(resp, req) |
| 118 | assert.Equal(t, http.StatusBadRequest, resp.Code) |
| 119 | }) |
| 120 | } |
| 121 | |
| 122 | func TestUpdateMatchingRule(t *testing.T) { |
| 123 | router, _, err := setupRouter(t) |
nothing calls this directly
no test coverage detected