()
| 155 | #[test] |
| 156 | #[cfg(feature = "ppc")] |
| 157 | fn decode_utf16_unpooled_strings() { |
| 158 | // Test unpooled UTF-16BE wide strings with null bytes at the start, end, and in the middle of the string. (MSVC) |
| 159 | let diff_config = diff::DiffObjConfig { combine_data_sections: true, ..Default::default() }; |
| 160 | let obj = obj::read::parse( |
| 161 | include_object!("data/ppc/KinectSharePanel.obj"), |
| 162 | &diff_config, |
| 163 | diff::DiffSide::Base, |
| 164 | ) |
| 165 | .unwrap(); |
| 166 | common::assert_literal_value( |
| 167 | &obj, |
| 168 | &diff_config, |
| 169 | "?OnPostLink@KinectSharePanel@@AAA?AVDataNode@@PAVDataArray@@@Z", |
| 170 | 84, |
| 171 | "UTF-16BE", |
| 172 | "Title Text", |
| 173 | ); |
| 174 | common::assert_literal_value( |
| 175 | &obj, |
| 176 | &diff_config, |
| 177 | "?OnPostLink@KinectSharePanel@@AAA?AVDataNode@@PAVDataArray@@@Z", |
| 178 | 120, |
| 179 | "UTF-16BE", |
| 180 | "http://www.dancecentral.com/content-assets/2012/06/2012E3LogoBox_tn.jpg", |
| 181 | ); |
| 182 | } |
| 183 | |
| 184 | #[test] |
| 185 | #[cfg(feature = "ppc")] |
nothing calls this directly
no test coverage detected