mirror of
https://github.com/openai/codex.git
synced 2026-10-27 18:48:37 +00:00
Preview Bazel failed test log output
This commit is contained in:
@@ -56,3 +56,11 @@ pub fn ansi_escape(s: &str) -> Text<'static> {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod preview_bazel_failed_logs_tests {
|
||||
#[test]
|
||||
fn preview_failed_log_from_ansi_escape() {
|
||||
panic!("intentional preview failure: ansi-escape test log");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -565,4 +565,9 @@ mod tests {
|
||||
assert!(description.contains("`setTimeout(callback: () => void, delayMs?: number)`"));
|
||||
assert!(description.contains("`clearTimeout(timeoutId?: number)`"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn preview_failed_log_from_code_mode() {
|
||||
panic!("intentional preview failure: code-mode test log");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,3 +41,8 @@ fn deserialize_skill_config_with_path_selector() {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn preview_failed_log_from_config() {
|
||||
panic!("intentional preview failure: config test log");
|
||||
}
|
||||
|
||||
@@ -67,6 +67,11 @@ fn test_invalid_bytes_still_fall_back_to_lossy() {
|
||||
assert_eq!(decode_shell_output(bytes), String::from_utf8_lossy(bytes));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn preview_failed_log_from_protocol() {
|
||||
panic!("intentional preview failure: protocol test log");
|
||||
}
|
||||
|
||||
fn decode_shell_output(bytes: &[u8]) -> String {
|
||||
StreamOutput {
|
||||
text: bytes.to_vec(),
|
||||
|
||||
@@ -279,3 +279,8 @@ fn byte_count_conversion_clamps_non_positive_values() {
|
||||
assert_eq!(approx_tokens_from_byte_count_i64(/*bytes*/ 0), 0);
|
||||
assert_eq!(approx_tokens_from_byte_count_i64(/*bytes*/ 5), 2);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn preview_failed_log_from_output_truncation() {
|
||||
panic!("intentional preview failure: output-truncation test log");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user