Skip to content

dircolors: turn integration test into unit test & remove unsafe code#12547

Open
cakebaker wants to merge 5 commits into
uutils:mainfrom
cakebaker:dircolors_remove_unsafes
Open

dircolors: turn integration test into unit test & remove unsafe code#12547
cakebaker wants to merge 5 commits into
uutils:mainfrom
cakebaker:dircolors_remove_unsafes

Conversation

@cakebaker
Copy link
Copy Markdown
Contributor

This PR does the following changes:

  • turns an integration test into an unit test
  • makes a function and an enum private
  • removes unsafe code in the unit test (changes are adapted from dircolors: remove unsafe #12228 and so I added @oech3 and @xtqqczze as co-authors)
  • removes the OutputFmt::Unknown variant

Closes #12228

cakebaker and others added 3 commits May 31, 2026 15:21
Co-authored-by: oech3 <79379754+oech3@users.noreply.github.com>
Co-authored-by: xtqqczze <45661989+xtqqczze@users.noreply.github.com>
@cakebaker cakebaker marked this pull request as draft May 31, 2026 15:37
@cakebaker cakebaker force-pushed the dircolors_remove_unsafes branch from 28aa505 to 6746a52 Compare May 31, 2026 15:46
@cakebaker cakebaker marked this pull request as ready for review May 31, 2026 15:49
@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/cut/bounded-memory (fails in this run but passes in the 'main' branch)

@oech3
Copy link
Copy Markdown
Contributor

oech3 commented May 31, 2026

Can we avoid unwrap(), unwrap(),... and unwrap() caused by Some(None)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants