MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / rejects_no_update_fields

Function rejects_no_update_fields

atomic-cli/src/commands/workspace/update.rs:116–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114
115 #[test]
116 fn rejects_no_update_fields() {
117 let cmd = WorkspaceUpdate {
118 slug: "my-ws".to_string(),
119 name: None,
120 description: None,
121 visibility: None,
122 org: None,
123 };
124 let result = cmd.run();
125 assert!(result.is_err());
126 match result.unwrap_err() {
127 CliError::InvalidArgument { message } => {
128 assert!(message.contains("At least one"));
129 }
130 other => panic!("expected InvalidArgument, got {:?}", other),
131 }
132 }
133
134 #[test]
135 fn struct_fields() {

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected