We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GitHubTokenEncryption::for_testing()
1 parent b492daa commit 61ba486Copy full SHA for 61ba486
src/util/gh_token_encryption.rs
@@ -18,7 +18,7 @@ impl GitHubTokenEncryption {
18
19
/// Creates a new [GitHubTokenEncryption] instance with a cipher for testing
20
/// purposes.
21
- #[cfg(test)]
+ #[cfg(any(test, debug_assertions))]
22
pub fn for_testing() -> Self {
23
let test_key = b"test_key_32_bytes_long_for_tests";
24
Self::new(Aes256Gcm::new(Key::<Aes256Gcm>::from_slice(test_key)))
0 commit comments