MCPcopy Create free account
hub / github.com/MarioCarrion/todo-api-microservice-example / Code

Method Code

internal/errors.go:53–55  ·  view source on GitHub ↗

Code returns the code representing this error.

()

Source from the content-addressed store, hash-verified

51
52// Code returns the code representing this error.
53func (e *Error) Code() ErrorCode {
54 return e.code
55}

Callers 7

TestWrapErrorfFunction · 0.95
TestNewErrorfFunction · 0.95
TestErrorCodeFunction · 0.95
TestTask_CreateFunction · 0.95
TestTask_DeleteFunction · 0.95
TestTask_FindFunction · 0.95
TestTask_UpdateFunction · 0.95

Calls

no outgoing calls

Tested by 7

TestWrapErrorfFunction · 0.76
TestNewErrorfFunction · 0.76
TestErrorCodeFunction · 0.76
TestTask_CreateFunction · 0.76
TestTask_DeleteFunction · 0.76
TestTask_FindFunction · 0.76
TestTask_UpdateFunction · 0.76