mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
14 lines
185 B
Go
14 lines
185 B
Go
|
package testing
|
||
|
|
||
|
type TestError string
|
||
|
|
||
|
var _ error = TestError("")
|
||
|
|
||
|
func NewTestError(s string) error {
|
||
|
return TestError(s)
|
||
|
}
|
||
|
|
||
|
func (e TestError) Error() string {
|
||
|
return string(e)
|
||
|
}
|