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

Add newWasmModuleEvent test cases for empty values #1899

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

chipshort
Copy link
Collaborator

This behaviour was originally changed in #1618, but tests were only added for newCustomEvents (used for Response.Events.Attributes), not for newWasmModuleEvent (used for Response.Attributes).

This came up while fixing the behaviour in MultiTest: CosmWasm/cw-multi-test#178

@chipshort chipshort requested a review from pinosu June 12, 2024 08:44
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.88%. Comparing base (21b048d) to head (0b873c2).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1899      +/-   ##
==========================================
+ Coverage   54.86%   54.88%   +0.02%     
==========================================
  Files          65       65              
  Lines        9772     9772              
==========================================
+ Hits         5361     5363       +2     
+ Misses       3866     3865       -1     
+ Partials      545      544       -1     

see 1 file with indirect coverage changes

Copy link
Contributor

@pinosu pinosu left a comment

Choose a reason for hiding this comment

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

Nice test cases! LGTM 👍

@pinosu pinosu merged commit ee8cc55 into CosmWasm:main Jun 19, 2024
16 checks passed
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