MCPcopy Create free account
hub / github.com/RustCrypto/utils / high_level_api

Function high_level_api

dit/src/lib.rs:143–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141
142 #[test]
143 fn high_level_api() {
144 let dit = Dit::init();
145 assert!(dit.is_supported());
146
147 {
148 assert!(!dit.is_enabled());
149 let _guard = dit.enable();
150 assert!(dit.is_enabled());
151
152 // Test nested usage
153 {
154 let _guard2 = dit.enable();
155 assert!(dit.is_enabled());
156 }
157
158 assert!(dit.is_enabled());
159 }
160
161 assert!(!dit.is_enabled());
162 }
163
164 #[test]
165 fn asm_wrappers() {

Callers

nothing calls this directly

Calls 2

enableMethod · 0.80
initFunction · 0.50

Tested by

no test coverage detected