Skip to content

Comments

test(api): add comprehensive unit tests for API type structures#662

Open
Shivampal157 wants to merge 1 commit intogoharbor:mainfrom
Shivampal157:main
Open

test(api): add comprehensive unit tests for API type structures#662
Shivampal157 wants to merge 1 commit intogoharbor:mainfrom
Shivampal157:main

Conversation

@Shivampal157
Copy link

This PR adds comprehensive unit tests for API type structures defined in pkg/api/types.go.

Coverage includes:

  • JSON marshaling and unmarshaling
  • Zero-value and partial field handling
  • Table-driven tests for all exported structs

No production code changes are introduced.

Signed-off-by: Shivampal157 <shivampal60076@gmail.com>
@Shivampal157
Copy link
Author

Hi @bupd,

This PR adds comprehensive, table-driven unit tests for API type structures in pkg/api/types.go, covering JSON marshal/unmarshal behavior, zero-value handling, and partial fields.
All checks are passing and no production code is modified.

Whenever you get a chance, could you please take a look and let me know if any changes are needed before merge?

Thanks for your time and review!

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