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

workdir:chore - improve tests and rename public functions #788

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

matheusalcantarazup
Copy link
Contributor

@matheusalcantarazup matheusalcantarazup commented Nov 18, 2021

This commit improve the current tests and add new ones. The improvement
was made to have a better assertiveness and cover more scenarios.

The public functions NewWorkDir and ParseInterfaceToStruct was
renamed to Default and MustParseWorkDir respectively to follow the
same API from toolsconfig and customimages packages to have consistency
between them.

This commit also remove the unused method Type from WorkDir struct.

Updates #718

Signed-off-by: Matheus Alcantara [email protected]

- What I did

- How to verify it

- Description for the changelog

This commit improve the current tests and add new ones. The improvement
was made to have a better assertiveness and cover more scenarios.

The public functions `NewWorkDir` and `ParseInterfaceToStruct` was
renamed to `Default` and `MustParseWorkDir` respectively to follow the
same API from toolsconfig and customimages packages to have consistency
between them.

This commit also remove the unused method `Type` from WorkDir struct.

Updates #718

Signed-off-by: Matheus Alcantara <[email protected]>
@matheusalcantarazup matheusalcantarazup merged commit 5611c8e into main Nov 19, 2021
@matheusalcantarazup matheusalcantarazup deleted the workdir-tests branch November 19, 2021 12:00
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.

3 participants