Skip to content

Inspect#19

Merged
dbidwell94 merged 3 commits into
masterfrom
inspect
Sep 8, 2025
Merged

Inspect#19
dbidwell94 merged 3 commits into
masterfrom
inspect

Conversation

@dbidwell94

Copy link
Copy Markdown
Owner
  • Added new utility types to Option and Result types
    • Option
      • inspect(callback) -- Calls the provided callback if called on
        a Some variant
    • Result
      • inspect(callback) -- Calls the provided callback if called on
        a Failure variant
      • expect(message) -- Unwraps the inner value if variant is Success,
        otherwise throws an Error with the provided message
  • Update test structure to be more readable and easier to add tests

@dbidwell94

Copy link
Copy Markdown
Owner Author

Coverage after merging inspect into master

100.00%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   index.tsN/A100%100%
src.option
   index.tsN/A100%100%
src.result
   index.tsN/A100%100%

@dbidwell94 dbidwell94 merged commit e54f9e9 into master Sep 8, 2025
1 check passed
@dbidwell94 dbidwell94 deleted the inspect branch September 8, 2025 21:33
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.

1 participant