Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
41
fn 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]
50
fn try_string_shrink_to_fit() -> Result<()> {
Callers
nothing calls this directly
Calls
4
Ok
Function · 0.85
new
Function · 0.50
test
Method · 0.45
push_str
Method · 0.45
Tested by
no test coverage detected