Skip to content

Conversation

@devbugging
Copy link
Contributor

@devbugging devbugging commented Jun 8, 2022

This PR updates to


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@turbolent turbolent marked this pull request as ready for review June 8, 2022 23:14
@turbolent turbolent added the Improvement Technical work without new features, refactoring, improving tests label Jun 8, 2022
@turbolent turbolent changed the title Update to secure Cadence Update Secure Cadence Jun 8, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jun 8, 2022

Codecov Report

Merging #516 (7c99b5e) into master (9b004d0) will not change coverage.
The diff coverage is 85.71%.

@@           Coverage Diff           @@
##           master     #516   +/-   ##
=======================================
  Coverage   55.05%   55.05%           
=======================================
  Files          37       37           
  Lines        2007     2007           
=======================================
  Hits         1105     1105           
  Misses        758      758           
  Partials      144      144           
Flag Coverage Δ
unittests 55.05% <85.71%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/flowkit/keys.go 32.60% <0.00%> (ø)
pkg/flowkit/services/blocks.go 69.23% <100.00%> (ø)
pkg/flowkit/services/events.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b004d0...7c99b5e. Read the comment docs.

assert.Equal(t, contracts[2].Name, "Kibble")
assert.Equal(t, contracts[3].Name, "KittyItems")
assert.Equal(t, contracts[4].Name, "KittyItemsMarket")
assert.Len(t, contracts, 5)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohh I had this on my mind so long, thank you!!! coming from JS world this order always confuses me

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, when we first adopted testify in Cadence, I was confused by the argument order, but got used to it. Good thing is now failures are not confusing anymore.

The require/assert.Len seems odd though, because it's inconsistent with Equal's expected/actual order.

@turbolent turbolent merged commit dffa320 into master Jun 9, 2022
@turbolent turbolent deleted the improvement/secure-cadence branch June 9, 2022 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Technical work without new features, refactoring, improving tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants