MCPcopy Create free account
hub / github.com/RiotGames/developer-relations / oauth_code

Function oauth_code

sample_apps/rso_sample_apps/rust/src/service.rs:134–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133 #[tokio::test]
134 async fn oauth_code() {
135 let prov = mock::AuthProvider::new();
136 let cfg = configuration(&prov);
137 let app = create_app(&cfg);
138
139 let response = app
140 .oneshot(
141 Request::builder()
142 .uri("/oauth?code=200")
143 .body(Body::empty())
144 .unwrap(),
145 )
146 .await
147 .unwrap();
148
149 assert_eq!(response.status(), StatusCode::OK);
150 }
151
152 #[tokio::test]
153 async fn data_returns_expected_result() {

Callers

nothing calls this directly

Calls 2

configurationFunction · 0.85
create_appFunction · 0.85

Tested by

no test coverage detected