chore: update tests (#13998)

This commit is contained in:
Lucas Fernandes Nogueira
2025-08-13 13:34:01 -03:00
committed by GitHub
parent 4475e93e13
commit 2d5f5a9230
11 changed files with 14 additions and 13 deletions

View File

@@ -254,9 +254,9 @@ mod tests {
assert!(ident("prefix:-base").is_err());
assert!(ident("prefix:base-").is_err());
assert!(ident("pre--fix:base--sep").is_err());
assert!(ident("prefix:base--sep").is_err());
assert!(ident("pre--fix:base").is_err());
assert!(ident("pre--fix:base--sep").is_ok());
assert!(ident("prefix:base--sep").is_ok());
assert!(ident("pre--fix:base").is_ok());
assert!(ident("prefix::base").is_err());
assert!(ident(":base").is_err());

View File

@@ -2945,6 +2945,7 @@ where
/// }
/// }
/// ```
#[allow(rustdoc::invalid_codeblock_attributes)]
#[skip_serializing_none]
#[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]

View File

@@ -433,7 +433,7 @@ mod tests {
#[cfg(target_os = "macos")]
assert!(resource_dir.is_err());
#[cfg(target_os = "linux")]
assert_eq!(resource_dir.unwrap(), PathBuf::from("/usr/lib/my-app"));
assert_eq!(resource_dir.unwrap(), PathBuf::from("/usr/lib/MyApp"));
#[cfg(windows)]
assert_eq!(resource_dir.unwrap(), path.parent().unwrap());
}

View File

@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
expression: resolved
---
Resolved {
has_app_acl: false,
allowed_commands: {
"plugin:ping|ping": [
ResolvedCommand {

View File

@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
expression: resolved
---
Resolved {
has_app_acl: false,
allowed_commands: {
"plugin:fs|read_dir": [
ResolvedCommand {

View File

@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
expression: resolved
---
Resolved {
has_app_acl: false,
allowed_commands: {
"plugin:fs|read_dir": [
ResolvedCommand {

View File

@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
expression: resolved
---
Resolved {
has_app_acl: false,
allowed_commands: {
"plugin:ping|ping": [
ResolvedCommand {

View File

@@ -1,9 +1,9 @@
---
source: crates/tests/acl/src/lib.rs
expression: resolved
snapshot_kind: text
---
Resolved {
has_app_acl: false,
allowed_commands: {
"plugin:fs|move": [
ResolvedCommand {

View File

@@ -1,9 +1,9 @@
---
source: crates/tests/acl/src/lib.rs
expression: resolved
snapshot_kind: text
---
Resolved {
has_app_acl: false,
allowed_commands: {
"plugin:fs|move": [
ResolvedCommand {

View File

@@ -1,9 +1,9 @@
---
source: crates/tests/acl/src/lib.rs
expression: resolved
snapshot_kind: text
---
Resolved {
has_app_acl: false,
allowed_commands: {
"plugin:fs|move": [
ResolvedCommand {

View File

@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
expression: resolved
---
Resolved {
has_app_acl: false,
allowed_commands: {
"plugin:os|spawn": [
ResolvedCommand {
@@ -88,10 +89,5 @@ Resolved {
deny: [],
},
},
global_scope: {
"os": ResolvedScope {
allow: [],
deny: [],
},
},
global_scope: {},
}