Skip to content

game sc tests

game sc tests #63

Triggered via pull request October 6, 2023 07:38
Status Success
Total duration 5m 49s
Artifacts 1
Fit to window
Zoom out
Zoom in

Annotations

5 warnings
[clippy] contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L342: contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L342
warning: used `assert_eq!` with a literal bool --> contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs:342:5 | 342 | / assert_eq!( 343 | | players_vec.contains(&ManagedAddress::from(user1.clone())), 344 | | true 345 | | ); | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison = note: `#[warn(clippy::bool_assert_comparison)]` on by default help: replace it with `assert!(..)` | 342 ~ assert!( 343 ~ players_vec.contains(&ManagedAddress::from(user1.clone())) |
[clippy] contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L346: contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L346
warning: used `assert_eq!` with a literal bool --> contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs:346:5 | 346 | / assert_eq!( 347 | | players_vec.contains(&ManagedAddress::from(user2.clone())), 348 | | true 349 | | ); | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison help: replace it with `assert!(..)` | 346 ~ assert!( 347 ~ players_vec.contains(&ManagedAddress::from(user2.clone())) |
[clippy] contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L366: contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L366
warning: used `assert_eq!` with a literal bool --> contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs:366:5 | 366 | / assert_eq!( 367 | | games_per_user1_vec.contains(&1u64) && games_per_user2_vec.contains(&1u64), 368 | | true 369 | | ); | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison help: replace it with `assert!(..)` | 366 ~ assert!( 367 ~ games_per_user1_vec.contains(&1u64) && games_per_user2_vec.contains(&1u64) |
[clippy] contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L485: contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L485
warning: redundant clone --> contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs:485:14 | 485 | wager.clone(), | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs:485:9 | 485 | wager.clone(), | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone = note: `#[warn(clippy::redundant_clone)]` on by default
[clippy] contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L596: contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs#L596
warning: redundant clone --> contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs:596:14 | 596 | wager.clone(), | ^^^^^^^^ help: remove this | note: this value is dropped without further use --> contracts/mvx-game-sc/tests/game_sc_blackbox_tests.rs:596:9 | 596 | wager.clone(), | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone

Artifacts

Produced during runtime
Name Size
build-output Expired
2.6 MB