mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
f3751e498f
This commits adds adds "permissions" option to the test definitions which allows tests to run with different permission sets than the process's permission. The change will only be in effect within the test function, once the test has completed the original process permission set is restored. Test permissions cannot exceed the process's permission. You can only narrow or drop permissions, failure to acquire a permission results in an error being thrown and the test case will fail.
7 lines
190 B
Rust
7 lines
190 B
Rust
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
|
|
|
pub mod errors;
|
|
pub mod runtime_compiler;
|
|
pub mod test_runner;
|
|
|
|
pub use deno_runtime::ops::{reg_async, reg_sync};
|