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

Function create_team_request_omits_none

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

Source from the content-addressed store, hash-verified

136
137 #[test]
138 fn create_team_request_omits_none() {
139 let body = CreateTeamRequest {
140 name: "Frontend",
141 description: None,
142 visibility: None,
143 };
144 let json = serde_json::to_value(&body).unwrap();
145 assert_eq!(json["name"], "Frontend");
146 assert!(json.get("description").is_none());
147 assert!(json.get("visibility").is_none());
148 }
149
150 #[test]
151 fn update_team_request_partial() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected