MCPcopy Create free account
hub / github.com/rolldown/rolldown / allow_empty_input

Function allow_empty_input

crates/string_wizard/tests/magic_string.rs:413–419  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411
412 #[test]
413 fn allow_empty_input() {
414 let mut s = MagicString::new("");
415 s.append("xyz");
416 assert_eq!(s.to_string(), "xyz");
417 s.prepend("xyz");
418 assert_eq!(s.to_string(), "xyzxyz");
419 }
420
421 #[test]
422 fn has_changed() {

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
prependMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…