MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / try_string_push_str

Function try_string_push_str

crates/fuzzing/tests/oom/string.rs:41–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40#[test]
41fn try_string_push_str() -> Result<()> {
42 OomTest::new().test(|| {
43 let mut s = TryString::new();
44 s.push_str("hello")?;
45 Ok(())
46 })
47}
48
49#[test]
50fn try_string_shrink_to_fit() -> Result<()> {

Callers

nothing calls this directly

Calls 4

OkFunction · 0.85
newFunction · 0.50
testMethod · 0.45
push_strMethod · 0.45

Tested by

no test coverage detected