MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / get_class_name

Function get_class_name

rust/src/utils.rs:159–178  ·  view source on GitHub ↗
(inv_arg: &InvocationArg)

Source from the content-addressed store, hash-verified

157}
158
159pub(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)]
181mod utils_unit_tests {

Callers 1

primitive_ofFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected