()
| 133 | |
| 134 | #[test] |
| 135 | fn struct_fields() { |
| 136 | let cmd = WorkspaceUpdate { |
| 137 | slug: "ws".to_string(), |
| 138 | name: Some("New Name".to_string()), |
| 139 | description: Some("New desc".to_string()), |
| 140 | visibility: Some(Visibility::Public), |
| 141 | org: Some("acme".to_string()), |
| 142 | }; |
| 143 | assert_eq!(cmd.slug, "ws"); |
| 144 | assert_eq!(cmd.name.as_deref(), Some("New Name")); |
| 145 | assert_eq!(cmd.description.as_deref(), Some("New desc")); |
| 146 | assert_eq!(cmd.visibility, Some(Visibility::Public)); |
| 147 | assert_eq!(cmd.org.as_deref(), Some("acme")); |
| 148 | } |
| 149 | } |
nothing calls this directly
no outgoing calls
no test coverage detected