From 08af44910d1f1b4a8b6fe61df6307ea9c742cb58 Mon Sep 17 00:00:00 2001 From: Zapharaos Date: Mon, 10 Feb 2025 12:08:37 +0100 Subject: [PATCH 1/2] fix(test): ci coverage command + minor bad test assertion --- .github/workflows/golang.yml | 2 +- internal/auth/auth_test.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/golang.yml b/.github/workflows/golang.yml index a304b16..3aaf9ca 100644 --- a/.github/workflows/golang.yml +++ b/.github/workflows/golang.yml @@ -31,7 +31,7 @@ jobs: run: go build -v ./... - name: Test with coverage - run: go test -race -suffle=on -v -coverprofile=coverage.out ./... + run: go test ./... -race -shuffle=on -coverprofile coverage.out - name: Upload results to Codecov uses: codecov/codecov-action@v5 diff --git a/internal/auth/auth_test.go b/internal/auth/auth_test.go index 6cebc33..8c1ee65 100644 --- a/internal/auth/auth_test.go +++ b/internal/auth/auth_test.go @@ -118,9 +118,6 @@ func TestGetToken(t *testing.T) { assert.Fail(t, "failed to decode response") } err = json.Unmarshal(data, &token) - if err != nil { - assert.Fail(t, "failed to decode response") - } // Check the response assert.Equal(t, tt.status, response.StatusCode) From 5566fc6598d1ec6493ca2cde5ddd4ca92a2739cb Mon Sep 17 00:00:00 2001 From: Zapharaos Date: Mon, 10 Feb 2025 12:56:29 +0100 Subject: [PATCH 2/2] feat(readme): short project description --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c660347..7531478 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ # fihub-backend +The backend handles users' requests to list their financial transactions and provide analysis. It connects to brokers selected by the users to retrieve their assets and transactions. + ## Development ### Docker