MCPcopy Index your code
hub / github.com/encounter/objdiff / decode_utf16_unpooled_strings

Function decode_utf16_unpooled_strings

objdiff-core/tests/arch_ppc.rs:157–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155#[test]
156#[cfg(feature = "ppc")]
157fn 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")]

Callers

nothing calls this directly

Calls 2

parseFunction · 0.85
assert_literal_valueFunction · 0.85

Tested by

no test coverage detected