mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-10-12 04:54:45 +00:00
Add github.com/stretchr/testify (test-only) as a direct dependency and vendor it, matching the traefikoidc precedent: _test.go files are never Yaegi-interpreted, so vendoring a test-only dependency does not affect the plugin's runtime under Traefik or the catalog analyzer. tools/yaegi-check/main.go: add vendor to the harness's repo-copy exclude list, since vendor/'s nested module layout (go.yaml.in/yaml/v3 alongside testify) has nothing to do with the plugin package Yaegi imports. Verified: make yaegi-check stays green; go build/vet/test unaffected.
11 lines
326 B
Go
11 lines
326 B
Go
package assert
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// AnError is an error instance useful for testing. If the code does not care
|
|
// about error specifics, and only needs to return the error for example, this
|
|
// error should be used to make the test code more readable.
|
|
var AnError = errors.New("assert.AnError general error for testing")
|