Skip to content

feat(TF-37):[edgecenteredgemon] unit test ErrorResponse.Error()#7

Merged
WispHes merged 2 commits intomainfrom
feat/TF-37-unit-test-error-response
Mar 10, 2026
Merged

feat(TF-37):[edgecenteredgemon] unit test ErrorResponse.Error()#7
WispHes merged 2 commits intomainfrom
feat/TF-37-unit-test-error-response

Conversation

@SergeyKrasnovv
Copy link
Copy Markdown
Collaborator

Added a table-driven test TestErrorResponse_Error in edgecenter/errors_test.go with four cases (Message only / Errors only / both set / both empty). Uses testify/assert.

@SergeyKrasnovv SergeyKrasnovv force-pushed the feat/TF-37-unit-test-error-response branch from ba59bd6 to 4325705 Compare March 6, 2026 14:39
Comment thread edgecenter/errors_test.go Outdated
errorsFilled := json.RawMessage(`{"code":"validation_error"}`)
tests := []struct {
name string
resp ErrorResponse
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*ErrorResponse

@WispHes WispHes merged commit 853bbf8 into main Mar 10, 2026
@WispHes WispHes deleted the feat/TF-37-unit-test-error-response branch March 10, 2026 08:02
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.

2 participants