Skip to content

Commit

Permalink
working test package
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmfwolf committed Jun 19, 2023
1 parent fc98731 commit 3642da2
Show file tree
Hide file tree
Showing 8 changed files with 207 additions and 535 deletions.
40 changes: 0 additions & 40 deletions cmd/main.go

This file was deleted.

66 changes: 0 additions & 66 deletions internal/api/mock_client.go

This file was deleted.

40 changes: 0 additions & 40 deletions internal/authentication/mock_authenticator.go

This file was deleted.

6 changes: 3 additions & 3 deletions internal/error/sdk_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ type SDKError struct {
Message string
}

func (e *SDKError) Error() string {
func (e SDKError) Error() string {
return fmt.Sprintf("SDK error: %s", e.Message)
}

func NewSDKError(message string) *SDKError {
return &SDKError{
func NewSDKError(message string) error {
return SDKError{
Message: message,
}
}
6 changes: 3 additions & 3 deletions internal/error/serialization_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ type SerializationError struct {
Message string
}

func (e *SerializationError) Error() string {
func (e SerializationError) Error() string {
return fmt.Sprintf("Serialization error: %s", e.Message)
}

func NewSerializationError(message string) *SerializationError {
return &SerializationError{
func NewSerializationError(message string) error {
return SerializationError{
Message: message,
}
}
Loading

0 comments on commit 3642da2

Please sign in to comment.