Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update logs and enhance ContentReader.ReadAll logic #42

Merged
merged 11 commits into from
Aug 2, 2024

Conversation

supitsdu
Copy link
Owner

@supitsdu supitsdu commented Jul 14, 2024

  • Improve error and success messages
  • Add better logic to tackle problems in the ContentReader.ReadAll func
  • Add new tests to tackle problems in the ContentReader

Closes #26

supitsdu added 3 commits July 14, 2024 20:20
- Improve the logic inside ContentReader.ReadAll Function
- Add more description info for each error
- Add success message to describe the size of the contents copied to
  the clipboard
- Improve the format of the Usage page
@supitsdu supitsdu added enhancement New feature requests or enhancements. refactoring Issues or PRs to improving code structure, without changing its external behavior under review Issues or PRs currently under evaluation and discussion. labels Jul 14, 2024
cli/options/options.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/tests.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
supitsdu added 2 commits July 16, 2024 18:25
Replace new line escape codes with
fmt.Fprintf(flag.CommandLine.Output()) for better readability as suggest
by @ccoVeile
Copy link
Contributor

@ccoVeille ccoVeille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until next time … (meme)

cli/reader/reader.go Outdated Show resolved Hide resolved
cli/reader/reader.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Outdated Show resolved Hide resolved
Update some logical and structural problems in the code following the
recommendations made by @ccoVeille
cli/console/errors.go Outdated Show resolved Hide resolved
cli/console/errors.go Outdated Show resolved Hide resolved
tests/tests.go Outdated Show resolved Hide resolved
tests/reader/reader_test.go Show resolved Hide resolved
@supitsdu
Copy link
Owner Author

supitsdu commented Aug 2, 2024

Hi, I experienced quite an incident that I wasn't expecting to happen a few weeks ago, which made me be offline for a bit. After slowing down the development of this and other projects, I'm working to get things sorted while I'm still on vacation (I have a week left tho 😅)

I much appreciate the reviews made by @ccoVeille. As always helps me a lot in learning Go and developing Clipper, Thanks 🤗

@ccoVeille
Copy link
Contributor

My pleasure. Enjoy your last week of holidays.

And more important, take care of you

…nd debugging

- Added detailed error messages to `require` and `assert` statements in `TestReadAll`, `TestReadable`, `TestIOReader`, `TestCreateContent`, and `TestJoinAll`
- Improved context in test assertions to facilitate easier debugging and maintenance
@supitsdu supitsdu merged commit d2d26b6 into main Aug 2, 2024
1 check passed
@supitsdu supitsdu deleted the feature/logs-enhancements branch August 2, 2024 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature requests or enhancements. refactoring Issues or PRs to improving code structure, without changing its external behavior under review Issues or PRs currently under evaluation and discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Informativeness of Success and Error Messages
2 participants