MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_exception_table_empty

Function test_exception_table_empty

crates/compiler-core/src/bytecode.rs:1384–1389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1382
1383 #[test]
1384 fn test_exception_table_empty() {
1385 let entries: Vec<ExceptionTableEntry> = vec![];
1386 let encoded = encode_exception_table(&entries);
1387 assert!(encoded.is_empty());
1388 assert!(find_exception_handler(&encoded, 0).is_none());
1389 }
1390
1391 #[test]
1392 fn test_exception_table_single_entry() {

Callers

nothing calls this directly

Calls 1

encode_exception_tableFunction · 0.85

Tested by

no test coverage detected