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

Function create_team_request_body

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

Source from the content-addressed store, hash-verified

123
124 #[test]
125 fn create_team_request_body() {
126 let body = CreateTeamRequest {
127 name: "Backend",
128 description: Some("Backend engineering"),
129 visibility: Some(TeamVisibility::Secret),
130 };
131 let json = serde_json::to_value(&body).unwrap();
132 assert_eq!(json["name"], "Backend");
133 assert_eq!(json["description"], "Backend engineering");
134 assert_eq!(json["visibility"], "secret");
135 }
136
137 #[test]
138 fn create_team_request_omits_none() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected