copilot-sdk 2.0.0

Rust SDK for programmatic control of the GitHub Copilot CLI via JSON-RPC.
1
2
3
4
5
6
7
8
9
10
11
12
13
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------------------------------------------*/

#![cfg(test)]

use super::*;

#[test]
fn token_debug_is_redacted() {
    let token = GitHubToken::new("do-not-print", 28_800);
    assert!(!format!("{token:?}").contains("do-not-print"));
}