Function
get_class_name
(inv_arg: &InvocationArg)
Source from the content-addressed store, hash-verified
| 157 | } |
| 158 | |
| 159 | pub(crate) fn get_class_name(inv_arg: &InvocationArg) -> &str { |
| 160 | let class_name = match inv_arg { |
| 161 | InvocationArg::Java { |
| 162 | instance: _, |
| 163 | class_name, |
| 164 | serialized: _, |
| 165 | } => class_name, |
| 166 | InvocationArg::Rust { |
| 167 | json: _, |
| 168 | class_name, |
| 169 | serialized: _, |
| 170 | } => class_name, |
| 171 | InvocationArg::RustBasic { |
| 172 | instance: _, |
| 173 | class_name, |
| 174 | serialized: _, |
| 175 | } => class_name, |
| 176 | }; |
| 177 | class_name.as_ref() |
| 178 | } |
| 179 | |
| 180 | #[cfg(test)] |
| 181 | mod utils_unit_tests { |
Tested by
no test coverage detected