MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / get_eval_value

Method get_eval_value

src/ast/kind.rs:310–321  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

308 }
309
310 pub fn get_eval_value(&self) -> String {
311 let value = self.get_value();
312 let value =
313 unescape_string(&value).unwrap_or_else(|| panic!("invalid escape string: {value}"));
314 if let Some(value) = value.strip_prefix('\"') {
315 if let Some(value) = value.strip_suffix('\"') {
316 return value.to_string();
317 }
318 return value.to_string();
319 }
320 value.to_string()
321 }
322}
323
324#[derive(Deserialize, Debug, Clone)]

Callers 7

match_string_patternMethod · 0.80
is_file_nameFunction · 0.80
is_format_stringFunction · 0.80

Calls 2

unescape_stringFunction · 0.85
get_valueMethod · 0.80

Tested by

no test coverage detected