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

Function test_gc_state_default

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

Source from the content-addressed store, hash-verified

873
874 #[test]
875 fn test_gc_state_default() {
876 let state = GcState::new();
877 assert!(state.is_enabled());
878 assert_eq!(state.get_debug(), GcDebugFlags::empty());
879 assert_eq!(state.get_threshold(), (2000, 10, 0));
880 assert_eq!(state.get_count(), (0, 0, 0));
881 }
882
883 #[test]
884 fn test_gc_enable_disable() {

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected