MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / drop

Method drop

crates/python/src/py_plugin.rs:68–81  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

66#[cfg(test)]
67impl Drop for ForcedPluginTestFlagGuard {
68 fn drop(&mut self) {
69 match self.kind {
70 ForcedPluginTestFlagKind::ValidateConfigToPyError => {
71 if let Ok(mut forced_kinds) = FORCE_VALIDATE_CONFIG_TO_PY_ERROR.lock() {
72 forced_kinds.remove(&self.plugin_kind);
73 }
74 }
75 ForcedPluginTestFlagKind::PluginContextNewError => {
76 if let Ok(mut forced_kinds) = FORCE_PLUGIN_CONTEXT_NEW_ERROR.lock() {
77 forced_kinds.remove(&self.plugin_kind);
78 }
79 }
80 }
81 }
82}
83
84#[cfg(test)]

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected