(node: &Node)
| 1516 | } |
| 1517 | |
| 1518 | pub fn fuzzable_var_get_init(node: &Node) -> &Node { |
| 1519 | if let Clang::VarDecl(vd) = &node.kind { |
| 1520 | return vd.get_init(node).ignore_cast().ignore_parent(); |
| 1521 | } |
| 1522 | unreachable!("node must be fuzzable! node: {node:?}") |
| 1523 | } |
| 1524 | |
| 1525 | /// replace a pattern to a str in a file. |
| 1526 | pub fn replace_string_in_file(file: &Path, pat: &str, to: &str) -> eyre::Result<()> { |
nothing calls this directly
no test coverage detected