Skip to content

Commit d0c58f6

Browse files
committed
Add stress test.
generate_all! for #include <string>.
1 parent fd42f7f commit d0c58f6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

integration-tests/tests/integration_test.rs

+27
Original file line numberDiff line numberDiff line change
@@ -5882,6 +5882,33 @@ fn test_generate_all() {
58825882
);
58835883
}
58845884

5885+
/// This is something of a stress test -
5886+
/// we #include <string> and try to generate everything.
5887+
#[test]
5888+
fn test_generate_all_string() {
5889+
let hdr = indoc! {"
5890+
#include <cstdint>
5891+
#include <string>
5892+
inline uint32_t give_int() {
5893+
return 5;
5894+
}
5895+
"};
5896+
let rs = quote! {
5897+
assert_eq!(ffi::give_int(), 5);
5898+
};
5899+
run_test_ex(
5900+
"",
5901+
hdr,
5902+
rs,
5903+
quote! {
5904+
generate_all!()
5905+
},
5906+
None,
5907+
None,
5908+
None,
5909+
);
5910+
}
5911+
58855912
#[test]
58865913
fn test_std_thing() {
58875914
let hdr = indoc! {"

0 commit comments

Comments
 (0)