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

Function should_replace_characters

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

Source from the content-addressed store, hash-verified

123
124 #[test]
125 fn should_replace_characters() {
126 let mut s = MagicString::new("abcdefghijkl");
127 s.overwrite(5, 8, "FGH");
128 assert_eq!(s.to_string(), "abcdeFGHijkl");
129 }
130
131 // #[test]
132 // fn should_throw_an_error_if_overlapping_replacements_are_attempted() {

Callers

nothing calls this directly

Calls 1

overwriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…