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

Function update_team_request_partial

atomic-teams/src/team.rs:151–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149
150 #[test]
151 fn update_team_request_partial() {
152 let body = UpdateTeamRequest {
153 name: Some("New Name"),
154 description: None,
155 visibility: None,
156 };
157 let json = serde_json::to_value(&body).unwrap();
158 assert_eq!(json["name"], "New Name");
159 assert!(json.get("description").is_none());
160 assert!(json.get("visibility").is_none());
161 }
162
163 #[test]
164 fn update_team_request_all_fields() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected