Skip to content

Unit tests - Update history repository#7371

Merged
miiu96 merged 8 commits into
feat/supernova-async-execfrom
unit-tests-update-db-lookup-ext-supernova
Oct 29, 2025
Merged

Unit tests - Update history repository#7371
miiu96 merged 8 commits into
feat/supernova-async-execfrom
unit-tests-update-db-lookup-ext-supernova

Conversation

@danielradu10

Copy link
Copy Markdown
Contributor

Reasoning behind the pull request

  • Added unit tests for the history repository update.

Proposed changes

  • unit tests

Testing procedure

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@danielradu10 danielradu10 self-assigned this Oct 24, 2025
Comment thread common/mock/marshalizerMock.go Outdated
return nil, ErrMockMarshalizer
}

if mm.MarshalCalled != nil {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have MarshalizerStub in the same package that does that, so maybe reuse that implementation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread dblookupext/historyRepository_test.go Outdated
t.Run("should return error", func(t *testing.T) {
t.Parallel()

expectedError := errors.New("expected error")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract it globally and reuse it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

sstanculeanu
sstanculeanu previously approved these changes Oct 27, 2025
miiu96
miiu96 previously approved these changes Oct 28, 2025
Base automatically changed from update-db-lookup-ext-supernova to feat/supernova-async-exec October 29, 2025 12:37
@miiu96 miiu96 dismissed stale reviews from sstanculeanu and themself October 29, 2025 12:37

The base branch was changed.

miiu96
miiu96 previously approved these changes Oct 29, 2025
sstanculeanu
sstanculeanu previously approved these changes Oct 29, 2025
@danielradu10 danielradu10 dismissed stale reviews from sstanculeanu and miiu96 via 7d2aff1 October 29, 2025 12:50
@miiu96 miiu96 merged commit f4b75ad into feat/supernova-async-exec Oct 29, 2025
8 of 9 checks passed
@miiu96 miiu96 deleted the unit-tests-update-db-lookup-ext-supernova branch October 29, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants