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

Function test_gc_enable_disable

crates/vm/src/gc_state.rs:884–891  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

882
883 #[test]
884 fn test_gc_enable_disable() {
885 let state = GcState::new();
886 assert!(state.is_enabled());
887 state.disable();
888 assert!(!state.is_enabled());
889 state.enable();
890 assert!(state.is_enabled());
891 }
892
893 #[test]
894 fn test_gc_threshold() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
disableMethod · 0.45
enableMethod · 0.45

Tested by

no test coverage detected