MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / pathbuf_with_capacity

Function pathbuf_with_capacity

euralios_std/src/path.rs:1036–1042  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1034
1035 #[test_case]
1036 fn pathbuf_with_capacity() {
1037 let mut path = PathBuf::with_capacity(10);
1038 let capacity = path.capacity();
1039 // This push is done without reallocating
1040 path.push(r"/test");
1041 assert_eq!(capacity, path.capacity());
1042 }
1043
1044 #[test_case]
1045 fn pathbuf_as_path() {

Callers

nothing calls this directly

Calls 2

capacityMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected