(&self, diff_config: Option<&DiffObjConfig>)
| 63 | |
| 64 | impl LiteralInfo { |
| 65 | pub fn hidden(&self, diff_config: Option<&DiffObjConfig>) -> bool { |
| 66 | let Some(diff_config) = diff_config else { |
| 67 | return self.hidden; |
| 68 | }; |
| 69 | if !self.is_string { |
| 70 | return self.hidden; |
| 71 | } |
| 72 | if diff_config.preferred_string_encoding == PreferredStringEncoding::Auto { |
| 73 | return self.hidden; |
| 74 | } |
| 75 | let Some(ref label) = self.label_override else { |
| 76 | return self.hidden; |
| 77 | }; |
| 78 | *label != diff_config.preferred_string_encoding.name() |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | /// Represents the type of data associated with an instruction |
no test coverage detected