forked from foundry-rs/foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfs.rs
24 lines (22 loc) · 848 Bytes
/
fs.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! Tests for reproducing issues
use crate::{
config::*,
test_helpers::{filter::Filter, PROJECT},
};
use foundry_config::{fs_permissions::PathPermission, Config, FsPermissions};
#[test]
fn test_fs_disabled() {
let mut config = Config::with_root(PROJECT.root());
config.fs_permissions = FsPermissions::new(vec![PathPermission::none("./")]);
let runner = runner_with_config(config);
let filter = Filter::new(".*", ".*", ".*fs/Disabled");
TestConfig::with_filter(runner, filter).run();
}
#[test]
fn test_fs_default() {
let mut config = Config::with_root(PROJECT.root());
config.fs_permissions = FsPermissions::new(vec![PathPermission::read("./fixtures")]);
let runner = runner_with_config(config);
let filter = Filter::new(".*", ".*", ".*fs/Default");
TestConfig::with_filter(runner, filter).run();
}