Skip to content

Commit cc640e4

Browse files
committed
Add snapshots for other scarb versions
1 parent 3b26fbf commit cc640e4

14 files changed

+236
-20
lines changed

crates/forge/tests/e2e/gas_report.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ use crate::assert_cleaned_output;
22
use crate::e2e::common::runner::{
33
BASE_FILE_PATTERNS, Package, setup_package, setup_package_with_file_patterns, test_runner,
44
};
5+
use indoc::indoc;
6+
use shared::test_utils::output_assert::assert_stdout_contains;
57

68
#[test]
79
fn basic() {
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
source: crates/forge/tests/e2e/gas_report.rs
3+
expression: stdout
4+
---
5+
[PASS] simple_package_integrationtest::contract::call_and_invoke (l1_gas: ~0, l1_data_gas: ~192, l2_gas: ~524000)
6+
------------------------+-------+-------+-------+---------+---------
7+
| HelloStarknet Contract | | | | | |
8+
+====================================================================+
9+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
10+
|------------------------+-------+-------+-------+---------+---------|
11+
| get_balance | 13840 | 13840 | 13840 | 0 | 2 |
12+
|------------------------+-------+-------+-------+---------+---------|
13+
| increase_balance | 25640 | 25640 | 25640 | 0 | 1 |
14+
------------------------+-------+-------+-------+---------+---------
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
source: crates/forge/tests/e2e/gas_report.rs
3+
expression: stdout
4+
---
5+
[PASS] simple_package_integrationtest::contract::call_and_invoke (l1_gas: ~0, l1_data_gas: ~192, l2_gas: ~510880)
6+
------------------------+-------+-------+-------+---------+---------
7+
| HelloStarknet Contract | | | | | |
8+
+====================================================================+
9+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
10+
|------------------------+-------+-------+-------+---------+---------|
11+
| get_balance | 13340 | 13340 | 13340 | 0 | 2 |
12+
|------------------------+-------+-------+-------+---------+---------|
13+
| increase_balance | 24940 | 24940 | 24940 | 0 | 1 |
14+
------------------------+-------+-------+-------+---------+---------
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
source: crates/forge/tests/e2e/gas_report.rs
3+
expression: stdout
4+
---
5+
[PASS] forking::tests::test_track_resources (l1_gas: ~0, l1_data_gas: ~320, l2_gas: ~513850)
6+
-------------------------+-------+-------+-------+---------+---------
7+
| forked contract | | | | | |
8+
| (class hash: 0x06…1550) | | | | | |
9+
+=====================================================================+
10+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
11+
|-------------------------+-------+-------+-------+---------+---------|
12+
| get_balance | 40000 | 40000 | 40000 | 0 | 1 |
13+
|-------------------------+-------+-------+-------+---------+---------|
14+
| increase_balance | 40000 | 40000 | 40000 | 0 | 1 |
15+
╰-------------------------+-------+-------+-------+---------+---------╯
16+
17+
╭-------------------------+-------+-------+-------+---------+---------╮
18+
| forked contract | | | | | |
19+
| (class hash: 0x07af4b) | | | | | |
20+
+=====================================================================+
21+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
22+
|-------------------------+-------+-------+-------+---------+---------|
23+
| get_balance | 13840 | 13840 | 13840 | 0 | 1 |
24+
|-------------------------+-------+-------+-------+---------+---------|
25+
| increase_balance | 25840 | 25840 | 25840 | 0 | 1 |
26+
╰-------------------------+-------+-------+-------+---------+---------╯

crates/forge/tests/e2e/snapshots/[email protected]

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ source: crates/forge/tests/e2e/gas_report.rs
33
expression: stdout
44
---
55
[PASS] forking::tests::test_track_resources (l1_gas: ~0, l1_data_gas: ~320, l2_gas: ~509780)
6-
-------------------------+-------+-------+-------+---------+---------
7-
| forked contract | | | | | |
8-
| (class hash: 0x06…1550) | | | | | |
9-
+=====================================================================+
10-
| Function Name | Min | Max | Avg | Std Dev | # Calls |
11-
|-------------------------+-------+-------+-------+---------+---------|
12-
| get_balance | 40000 | 40000 | 40000 | 0 | 1 |
13-
|-------------------------+-------+-------+-------+---------+---------|
14-
| increase_balance | 40000 | 40000 | 40000 | 0 | 1 |
15-
╰-------------------------+-------+-------+-------+---------+---------╯
6+
---------------------------+-------+-------+-------+---------+---------
7+
| forked contract | | | | | |
8+
| (class hash: 0x06a7…1550) | | | | | |
9+
+=======================================================================+
10+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
11+
|---------------------------+-------+-------+-------+---------+---------|
12+
| get_balance | 40000 | 40000 | 40000 | 0 | 1 |
13+
|---------------------------+-------+-------+-------+---------+---------|
14+
| increase_balance | 40000 | 40000 | 40000 | 0 | 1 |
15+
╰---------------------------+-------+-------+-------+---------+---------╯
1616

17-
╭-------------------------+-------+-------+-------+---------+---------╮
18-
| forked contract | | | | | |
19-
| (class hash: 0x07af4b) | | | | | |
20-
+=====================================================================+
21-
| Function Name | Min | Max | Avg | Std Dev | # Calls |
22-
|-------------------------+-------+-------+-------+---------+---------|
23-
| get_balance | 13840 | 13840 | 13840 | 0 | 1 |
24-
|-------------------------+-------+-------+-------+---------+---------|
25-
| increase_balance | 25840 | 25840 | 25840 | 0 | 1 |
26-
╰-------------------------+-------+-------+-------+---------+---------╯
17+
╭---------------------------+-------+-------+-------+---------+---------╮
18+
| forked contract | | | | | |
19+
| (class hash: 0x07aaaf4b) | | | | | |
20+
+=======================================================================+
21+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
22+
|---------------------------+-------+-------+-------+---------+---------|
23+
| get_balance | 13840 | 13840 | 13840 | 0 | 1 |
24+
|---------------------------+-------+-------+-------+---------+---------|
25+
| increase_balance | 25840 | 25840 | 25840 | 0 | 1 |
26+
╰---------------------------+-------+-------+-------+---------+---------╯
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
source: crates/forge/tests/e2e/gas_report.rs
3+
expression: stdout
4+
---
5+
[PASS] forking::tests::test_track_resources (l1_gas: ~0, l1_data_gas: ~320, l2_gas: ~509780)
6+
-------------------------+-------+-------+-------+---------+---------
7+
| forked contract | | | | | |
8+
| (class hash: 0x06…1550) | | | | | |
9+
+=====================================================================+
10+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
11+
|-------------------------+-------+-------+-------+---------+---------|
12+
| get_balance | 40000 | 40000 | 40000 | 0 | 1 |
13+
|-------------------------+-------+-------+-------+---------+---------|
14+
| increase_balance | 40000 | 40000 | 40000 | 0 | 1 |
15+
╰-------------------------+-------+-------+-------+---------+---------╯
16+
17+
╭-------------------------+-------+-------+-------+---------+---------╮
18+
| forked contract | | | | | |
19+
| (class hash: 0x07af4b) | | | | | |
20+
+=====================================================================+
21+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
22+
|-------------------------+-------+-------+-------+---------+---------|
23+
| get_balance | 13840 | 13840 | 13840 | 0 | 1 |
24+
|-------------------------+-------+-------+-------+---------+---------|
25+
| increase_balance | 25840 | 25840 | 25840 | 0 | 1 |
26+
╰-------------------------+-------+-------+-------+---------+---------╯
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
source: crates/forge/tests/e2e/gas_report.rs
3+
expression: stdout
4+
---
5+
[PASS] forking::tests::test_track_resources (l1_gas: ~0, l1_data_gas: ~320, l2_gas: ~509780)
6+
-------------------------+-------+-------+-------+---------+---------
7+
| forked contract | | | | | |
8+
| (class hash: 0x06…1550) | | | | | |
9+
+=====================================================================+
10+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
11+
|-------------------------+-------+-------+-------+---------+---------|
12+
| get_balance | 40000 | 40000 | 40000 | 0 | 1 |
13+
|-------------------------+-------+-------+-------+---------+---------|
14+
| increase_balance | 40000 | 40000 | 40000 | 0 | 1 |
15+
╰-------------------------+-------+-------+-------+---------+---------╯
16+
17+
╭-------------------------+-------+-------+-------+---------+---------╮
18+
| forked contract | | | | | |
19+
| (class hash: 0x07af4b) | | | | | |
20+
+=====================================================================+
21+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
22+
|-------------------------+-------+-------+-------+---------+---------|
23+
| get_balance | 13840 | 13840 | 13840 | 0 | 1 |
24+
|-------------------------+-------+-------+-------+---------+---------|
25+
| increase_balance | 25840 | 25840 | 25840 | 0 | 1 |
26+
╰-------------------------+-------+-------+-------+---------+---------╯
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
source: crates/forge/tests/e2e/gas_report.rs
3+
expression: stdout
4+
---
5+
[PASS] simple_package_with_cheats_integrationtest::contract::call_and_invoke_proxy (l1_gas: ~0, l1_data_gas: ~288, l2_gas: ~893550)
6+
------------------------+-------+-------+-------+---------+---------
7+
| HelloStarknet Contract | | | | | |
8+
+====================================================================+
9+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
10+
|------------------------+-------+-------+-------+---------+---------|
11+
| get_block_number | 16280 | 16280 | 16280 | 0 | 2 |
12+
------------------------+-------+-------+-------+---------+---------
13+
14+
-----------------------------+--------+--------+--------+---------+---------
15+
| HelloStarknetProxy Contract | | | | | |
16+
+============================================================================+
17+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
18+
|-----------------------------+--------+--------+--------+---------+---------|
19+
| constructor | 15850 | 15850 | 15850 | 0 | 1 |
20+
|-----------------------------+--------+--------+--------+---------+---------|
21+
| get_block_number | 126760 | 126760 | 126760 | 0 | 2 |
22+
-----------------------------+--------+--------+--------+---------+---------
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
source: crates/forge/tests/e2e/gas_report.rs
3+
expression: stdout
4+
---
5+
[PASS] simple_package_with_cheats_integrationtest::contract::call_and_invoke_proxy (l1_gas: ~0, l1_data_gas: ~288, l2_gas: ~868670)
6+
------------------------+-------+-------+-------+---------+---------
7+
| HelloStarknet Contract | | | | | |
8+
+====================================================================+
9+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
10+
|------------------------+-------+-------+-------+---------+---------|
11+
| get_block_number | 15780 | 15780 | 15780 | 0 | 2 |
12+
------------------------+-------+-------+-------+---------+---------
13+
14+
-----------------------------+--------+--------+--------+---------+---------
15+
| HelloStarknetProxy Contract | | | | | |
16+
+============================================================================+
17+
| Function Name | Min | Max | Avg | Std Dev | # Calls |
18+
|-----------------------------+--------+--------+--------+---------+---------|
19+
| constructor | 14650 | 14650 | 14650 | 0 | 1 |
20+
|-----------------------------+--------+--------+--------+---------+---------|
21+
| get_block_number | 125280 | 125280 | 125280 | 0 | 2 |
22+
-----------------------------+--------+--------+--------+---------+---------

0 commit comments

Comments
 (0)