forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pull error rendering out of error type, snapshot tests, only return an
error don't print, use named params in fomrat, remove mut from finish() cache files, capitalization show be lower # Conflicts: # crates/sui/src/unit_tests/snapshots/sui__upgrade_compatibility__upgrade_compatibility_tests__struct_missing.snap # crates/sui/src/unit_tests/upgrade_compatibility_tests.rs # crates/sui/src/upgrade_compatibility.rs # external-crates/move/crates/move-binary-format/src/compatibility_mode.rs
- Loading branch information
1 parent
d702d45
commit 5cc439e
Showing
2 changed files
with
204 additions
and
10 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...ts/snapshots/sui__upgrade_compatibility__upgrade_compatibility_tests__struct_missing.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
source: crates/sui/src/unit_tests/upgrade_compatibility_tests.rs | ||
expression: err.to_string() | ||
--- | ||
Upgrade compatibility check failed: | ||
error: struct is missing | ||
┌─ /Users/jordanjennings/code/sui/crates/sui/src/unit_tests/fixtures/upgrade_errors/declarations_missing_v2/sources/UpgradeErrors.move:7:18 | ||
│ | ||
7 │ module upgrades::upgrades { | ||
│ ^^^^^^^^ Module 'upgrades' expected struct 'StructToBeRemoved', but found none | ||
│ | ||
= The struct is missing in the new module, add the previously defined: 'StructToBeRemoved' | ||
|
||
error: enum is missing | ||
┌─ /Users/jordanjennings/code/sui/crates/sui/src/unit_tests/fixtures/upgrade_errors/declarations_missing_v2/sources/UpgradeErrors.move:7:18 | ||
│ | ||
7 │ module upgrades::upgrades { | ||
│ ^^^^^^^^ Module 'upgrades' expected enum 'EnumToBeRemoved', but found none | ||
│ | ||
= The enum is missing in the new module, add the previously defined: 'EnumToBeRemoved' | ||
|
||
error: public function is missing | ||
┌─ /Users/jordanjennings/code/sui/crates/sui/src/unit_tests/fixtures/upgrade_errors/declarations_missing_v2/sources/UpgradeErrors.move:7:18 | ||
│ | ||
7 │ module upgrades::upgrades { | ||
│ ^^^^^^^^ Module 'upgrades' expected public function 'fun_to_be_removed', but found none | ||
│ | ||
= The public function is missing in the new module, add the previously defined: 'fun_to_be_removed' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters