-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
187 changed files
with
395 additions
and
340 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
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
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
//! Filesystem tests. | ||
|
||
use crate::{config::*, test_helpers::PROJECT}; | ||
use foundry_config::{fs_permissions::PathPermission, Config, FsPermissions}; | ||
use crate::{config::*, test_helpers::TEST_DATA_DEFAULT}; | ||
use foundry_config::{fs_permissions::PathPermission, FsPermissions}; | ||
use foundry_test_utils::Filter; | ||
|
||
#[tokio::test(flavor = "multi_thread")] | ||
async fn test_fs_disabled() { | ||
let mut config = Config::with_root(PROJECT.root()); | ||
let mut config = TEST_DATA_DEFAULT.config.clone(); | ||
config.fs_permissions = FsPermissions::new(vec![PathPermission::none("./")]); | ||
let runner = runner_with_config(config); | ||
let runner = runner_with_config(&TEST_DATA_DEFAULT, config); | ||
let filter = Filter::new(".*", ".*", ".*fs/Disabled"); | ||
TestConfig::with_filter(runner, filter).run().await; | ||
} | ||
|
||
#[tokio::test(flavor = "multi_thread")] | ||
async fn test_fs_default() { | ||
let mut config = Config::with_root(PROJECT.root()); | ||
let mut config = TEST_DATA_DEFAULT.config.clone(); | ||
config.fs_permissions = FsPermissions::new(vec![PathPermission::read("./fixtures")]); | ||
let runner = runner_with_config(config); | ||
let runner = runner_with_config(&TEST_DATA_DEFAULT, config); | ||
let filter = Filter::new(".*", ".*", ".*fs/Default"); | ||
TestConfig::with_filter(runner, filter).run().await; | ||
} |
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
Oops, something went wrong.