-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter out files before a too deep analysis.
- Loading branch information
Showing
11 changed files
with
165 additions
and
9 deletions.
There are no files selected for viewing
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
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
8 changes: 8 additions & 0 deletions
8
tests/e2e/filtering/test_data/test_filtering_analysis/README.md
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,8 @@ | ||
# Foundry | ||
|
||
**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.** | ||
|
||
This test should be installed using | ||
```shell | ||
forge install --no-commit --no-git foundry-rs/forge-std | ||
``` |
6 changes: 6 additions & 0 deletions
6
tests/e2e/filtering/test_data/test_filtering_analysis/foundry.toml
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,6 @@ | ||
[profile.default] | ||
src = "src" | ||
out = "out" | ||
libs = ["lib"] | ||
|
||
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options |
16 changes: 16 additions & 0 deletions
16
tests/e2e/filtering/test_data/test_filtering_analysis/src/sub1/A.sol
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,16 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import {B} from "../sub2/B.sol"; | ||
import "./E.sol"; | ||
|
||
contract A is E { | ||
B public b; | ||
|
||
constructor(B b_contract) { | ||
b = b_contract; | ||
} | ||
function a() public view { | ||
b.b(); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/e2e/filtering/test_data/test_filtering_analysis/src/sub1/C.sol
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,13 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import {B} from "../sub2/B.sol"; | ||
|
||
contract C { | ||
|
||
B.Status public status; | ||
|
||
constructor(){ | ||
|
||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/e2e/filtering/test_data/test_filtering_analysis/src/sub1/E.sol
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,10 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import "./F.sol"; | ||
|
||
contract E is F{ | ||
constructor(){ | ||
|
||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/e2e/filtering/test_data/test_filtering_analysis/src/sub1/F.sol
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,10 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import "./E.sol"; | ||
|
||
contract F { | ||
constructor(){ | ||
|
||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/e2e/filtering/test_data/test_filtering_analysis/src/sub2/B.sol
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,15 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
contract B { | ||
|
||
enum Status { | ||
VALID, | ||
INVALID | ||
} | ||
|
||
constructor(){ | ||
|
||
} | ||
function b() public view {} | ||
} |
7 changes: 7 additions & 0 deletions
7
tests/e2e/filtering/test_data/test_filtering_analysis/src/sub2/D.sol
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,7 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
contract D { | ||
constructor(){ | ||
} | ||
} |
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