()
| 149 | |
| 150 | #[test] |
| 151 | fn fields_are_stored() { |
| 152 | let cmd = WorkspaceCreate { |
| 153 | name: "my-ws".to_string(), |
| 154 | description: Some("A workspace".to_string()), |
| 155 | visibility: "public".to_string(), |
| 156 | org: Some("acme".to_string()), |
| 157 | }; |
| 158 | assert_eq!(cmd.name, "my-ws"); |
| 159 | assert_eq!(cmd.description.as_deref(), Some("A workspace")); |
| 160 | assert_eq!(cmd.visibility, "public"); |
| 161 | assert_eq!(cmd.org.as_deref(), Some("acme")); |
| 162 | } |
| 163 | |
| 164 | #[test] |
| 165 | fn parse_visibility_valid() { |
nothing calls this directly
no outgoing calls
no test coverage detected