Skip to content
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

chore: add dictionary testing #194

Merged
merged 4 commits into from
Feb 25, 2023
Merged

chore: add dictionary testing #194

merged 4 commits into from
Feb 25, 2023

Conversation

pgautier404
Copy link
Contributor

No description provided.

Field: String(""),
Value: String("myValue"),
}),
).Error().To(HaveMomentoErrorCode(InvalidArgumentError))
Copy link
Member

Choose a reason for hiding this comment

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

maybe add case for nil also? I had made this ticket for nil Field or Value also so can wait till we do that if easier come back in one pass.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, I'll add that in a followup.

Items: map[string]Value{"myField": String("myValue"), "": String("myOtherValue")},
}),
).Error().To(HaveMomentoErrorCode(InvalidArgumentError))
})
Copy link
Member

Choose a reason for hiding this comment

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

same here for nil check. Maybe just add TODO comment in test for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same, will follow up on this in my list testing PR.

Copy link
Member

@eaddingtonwhite eaddingtonwhite left a comment

Choose a reason for hiding this comment

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

Awesome job on these @pgautier404 !! Loving the new test lib were using looks great.

@pgautier404 pgautier404 merged commit ae45edc into main Feb 25, 2023
@pgautier404 pgautier404 deleted the add-dictionary-testing branch February 25, 2023 01:10
cprice404 pushed a commit that referenced this pull request Mar 14, 2023
* chore: adding dictionary tests

* continuing testing

* adjust for refactor and finish adding tests

* TTL testing and test cleanup
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.

2 participants