MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / label

Method label

src/api_client.rs:54–63  ·  view source on GitHub ↗

How to name it in the runner output.

(&self, run_environment: &RunEnvironment)

Source from the content-addressed store, hash-verified

52
53 /// How to name it in the runner output.
54 pub fn label(&self, run_environment: &RunEnvironment) -> String {
55 match self {
56 Authentication::Oidc(_) => format!("OIDC token minted by {run_environment}"),
57 Authentication::RunToken(_) => "token from `CODSPEED_TOKEN`".to_owned(),
58 Authentication::CliLogin(_) => "token from `codspeed auth login`".to_owned(),
59 Authentication::Tokenless => {
60 "tokenless, supported for public repositories only".to_owned()
61 }
62 }
63 }
64}
65
66impl CodSpeedAPIClient {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected