Skip to main content

test_token

Function test_token 

Source
pub fn test_token(label: &str) -> CredentialsToken
Available on crate feature testkit only.
Expand description

A credentials token with a fixed, obviously-fake value.

Using a recognisable constant in tests makes an accidental leak into a log or a fixture obvious, and makes failures reproducible.