-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add data client support for list api calls #64
Conversation
test/src/cache/list_test.dart
Outdated
expect(fetchResp2.errorCode, | ||
MomentoErrorCode.invalidArgumentError, | ||
reason: | ||
"listFetch should not accept empty cache name"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should say should not accept empty list name
right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and similar fix for the other strings in this group
test/src/cache/list_test.dart
Outdated
// this is expected | ||
return; | ||
case ListFetchError(): | ||
fail('Expected Miss but got Error'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fail
statements should probably print error code and message too
test/src/cache/test_utils.dart
Outdated
case ListFetchMiss(): | ||
fail('Expected Hit but got Miss'); | ||
case ListFetchError(): | ||
fail('Expected Hit but got Error'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fail
statements in helper functions should also include error code and message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛳️
closes #26
closes #70
closes #71