test(data_structures): remove duplicate test#23570
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
Pull request overview
Removes a redundant unit test in oxc_data_structures’s CodeBuffer tests to reduce duplication while preserving existing behavior verification.
Changes:
- Deleted
string_isomorphismtest (overlaps with the nearbyinto_stringtest).
Comments suppressed due to low confidence (1)
crates/oxc_data_structures/src/code_buffer.rs:754
- Removing
string_isomorphismdrops coverage forFrom<CodeBuffer> for Stringon a non-empty buffer (the remainingemptytest only covers the empty case). To keep coverage while avoiding duplication, fold that assertion into the existinginto_stringtest by converting a cloned buffer viaString::from(orInto<String>).
let s = "Hello, world!";
let mut code = CodeBuffer::with_capacity(s.len());
code.print_str(s);
let source = code.into_string();
Merge activity
|
This test does the same as `into_string` test just below. Remove it.
9883f77 to
851891b
Compare
This test does the same as `into_string` test just below. Remove it.

This test does the same as
into_stringtest just below. Remove it.