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

Function high_level_api

aarch64-dit/src/lib.rs:131–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129
130 #[test]
131 fn high_level_api() {
132 let dit = Dit::init();
133 assert!(dit.is_supported());
134
135 {
136 assert!(!dit.is_enabled());
137 let _guard = dit.enable();
138 assert!(dit.is_enabled());
139
140 // Test nested usage
141 {
142 let _guard2 = dit.enable();
143 assert!(dit.is_enabled());
144 }
145
146 assert!(dit.is_enabled());
147 }
148
149 assert!(!dit.is_enabled());
150 }
151
152 #[test]
153 fn asm_wrappers() {

Callers

nothing calls this directly

Calls 2

enableMethod · 0.80
initFunction · 0.50

Tested by

no test coverage detected