Skip to content

Add Parse method to DurationTimeParser - #6

Merged
HaGGi13 merged 3 commits into
developfrom
feature/add-parse-method
Feb 22, 2026
Merged

Add Parse method to DurationTimeParser#6
HaGGi13 merged 3 commits into
developfrom
feature/add-parse-method

Conversation

@HaGGi13

@HaGGi13 HaGGi13 commented Feb 22, 2026

Copy link
Copy Markdown
Owner

Add Parse method to DurationTimeParser

Introduced a Parse method to validate and convert input strings to
TimeSpan, throwing relevant exceptions (ArgumentNullException,
FormatException) for invalid cases.
This method was introduced for not passive coding approaches to satisfy
this possible need of developers too.

Added comprehensive unit tests to cover the new method Parse
functionality. To avoid input value redundancy and enhance reusability,
all values were extracted to use-case dedicated classes.

Extend benchmarks

Furthermore, benchmarks for the method Parse were added.

In addition, the usage examples in the README file were fixed and a
reference to the Benchmark page in the Wiki added. The later was done to
keep the README small and focused on the easy get started.

Added benchmarks for the new method Parse and hide not needed columns
"Job" and "Alloc Ratio" in results.

Introduced a `Parse` method to validate and convert input strings to
`TimeSpan`, throwing relevant exceptions (`ArgumentNullException`,
`FormatException`) for invalid cases.
This method was introduced for not passive coding approaches to satisfy
this possible need of developers too.

Added comprehensive unit tests to cover the new method `Parse`
functionality. To avoid input value redundancy and enhance reusability,
all values were extracted to use-case dedicated classes.
Added benchmarks for the new method `Parse` and hide not needed columns
"Job" and "Alloc Ratio" in results.
The usage examples in the README file were fixed and a reference to the
Benchmark page in the Wiki added. The later was done to keep the README
small and focused on the easy get started.
@HaGGi13 HaGGi13 self-assigned this Feb 22, 2026
@HaGGi13
HaGGi13 merged commit 106e0cd into develop Feb 22, 2026
4 checks passed
@HaGGi13
HaGGi13 deleted the feature/add-parse-method branch February 22, 2026 17:32
HaGGi13 added a commit that referenced this pull request Feb 22, 2026
Add `Parse` method to `DurationTimeParser`

Introduced a `Parse` method to validate and convert input strings to
`TimeSpan`, throwing relevant exceptions (`ArgumentNullException`,
`FormatException`) for invalid cases.
This method was introduced for not passive coding approaches to satisfy
this possible need of developers too.

Added comprehensive unit tests to cover the new method `Parse`
functionality. To avoid input value redundancy and enhance reusability,
all values were extracted to use-case dedicated classes.

Extend benchmarks

Furthermore, benchmarks for the method `Parse` were added.

In addition, the usage examples in the README file were fixed and a
reference to the Benchmark page in the Wiki added. The later was done to
keep the README small and focused on the easy get started.

Added benchmarks for the new method `Parse` and hide not needed columns
"Job" and "Alloc Ratio" in results.
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