mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-06 07:52:10 +08:00
21 lines
265 B
Go
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
|
|
}
|