Files
certimate/pkg/plugin/testing_helpers_test.go
2026-07-24 16:34:13 +08:00

21 lines
265 B
Go

package plugin
import (
"context"
"encoding/json"
"testing"
)
func testContext(t *testing.T) context.Context {
t.Helper()
return context.Background()
}
func jsonMarshal(v any) []byte {
b, err := json.Marshal(v)
if err != nil {
panic(err)
}
return b
}