Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Improved error handling, run delete/find tests in CI #6

Merged
merged 6 commits into from
Jan 20, 2023

Conversation

traeok
Copy link
Owner

@traeok traeok commented Jan 12, 2023

Note: Probably should be tested on a macOS machine to confirm no breaking changes - but, code does cross-compile w/o errors, and core functionality remains the same.

Update: Thanks @awharn for testing this on macOS for x86_64 and aarch64 😄


Previously, the core implementation was using an Error struct. This has been changed to an enum and avoids extra boilerplate for error formatting, thanks to the thiserror crate.

This PR also adds the test functions for deletePassword, findCredentials, & findPassword under the following Yarn scripts:

  • test:delete
  • test:find

Tests are still set-up to only run get/set with yarn test - CI was updated to run those above scripts in succession.

Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@traeok traeok marked this pull request as ready for review January 17, 2023 20:37
@traeok traeok changed the title Error handling Error handling, run delete/find tests in CI Jan 17, 2023
@traeok traeok requested a review from t1m0thyj January 17, 2023 20:40
@traeok traeok linked an issue Jan 17, 2023 that may be closed by this pull request
@traeok traeok changed the title Error handling, run delete/find tests in CI Improved error handling, run delete/find tests in CI Jan 17, 2023
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
@traeok traeok merged commit dc807ba into main Jan 20, 2023
@traeok traeok deleted the fix/error-handling branch January 20, 2023 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better error handling / error enum
1 participant