Skip to content

Commit 5fd3f2c

Browse files
authored
chore(testutil): deprecate PACT support (#417)
1 parent 78fd979 commit 5fd3f2c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

framework/testutil/pact.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Package testutil contains helper functions for PACT testing
2+
// Deprecated: PACT support will be dropped from Flamingo in v4
13
package testutil
24

35
import (
@@ -18,9 +20,11 @@ import (
1820
)
1921

2022
// ErrNoPact error
23+
// Deprecated: PACT support will be dropped from Flamingo in v4
2124
var ErrNoPact = errors.New("no pact setup")
2225

2326
// WithPact runs a test with a pact
27+
// Deprecated: PACT support will be dropped from Flamingo in v4
2428
func WithPact(t *testing.T, from, to string, fs ...func(*testing.T, *dsl.Pact)) {
2529
if from == "" {
2630
from = "flamingo"
@@ -108,6 +112,7 @@ func pactTeardown(pact *dsl.Pact) error {
108112
}
109113

110114
// PactEncodeLike encodes a byte slice from json.Marshal or jsonpb into a pact type-like representation
115+
// Deprecated: PACT support will be dropped from Flamingo in v4
111116
func PactEncodeLike(model []byte) string {
112117
var data interface{}
113118
json.Unmarshal(model, &data)

0 commit comments

Comments
 (0)