Skip to content

Conversation

@majst01
Copy link
Contributor

@majst01 majst01 commented Mar 17, 2025

Description

This is handy for testing only to get rid of ugly mocks. Does not work for all Tenant Service Methods because there is the sql connection used directly.

Only useful for tests where CRUD operation on the available Entities are required. Find operations and operations where additional queries are called does not work.

depends on: #114

Copy link

@vknabel vknabel left a comment

Choose a reason for hiding this comment

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

Very nice!


// DeleteAll implements Storage.
func (m *memoryDatastore[E]) DeleteAll(ctx context.Context, ids ...string) error {
panic("unimplemented")
Copy link

Choose a reason for hiding this comment

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

Do we want to implement this? Should be fairly easy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@majst01
Copy link
Contributor Author

majst01 commented Mar 24, 2025

#114 should be merged first

@majst01 majst01 marked this pull request as ready for review March 24, 2025 07:59
@majst01 majst01 requested a review from a team as a code owner March 24, 2025 07:59
@majst01 majst01 merged commit 13b3dd9 into master Mar 24, 2025
1 check passed
@majst01 majst01 deleted the memory-datastore branch March 24, 2025 09:20
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