-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Introduce persistent store testing support (#254)
- Loading branch information
Showing
25 changed files
with
1,652 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ linters: | |
- govet | ||
- ineffassign | ||
- lll | ||
- megacheck | ||
- misspell | ||
- nakedret | ||
- nolintlint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package helpers | ||
|
||
import ( | ||
"fmt" | ||
"io" | ||
) | ||
|
||
// The refactoring that led to the creation of this file was to avoid the need | ||
// to check for errors every time we print something. But, why are we printing | ||
// things with Fprintf so much? | ||
// | ||
// It seems like we could be using the go logger instead to much greater | ||
// effect. | ||
|
||
func MustFprintln(w io.Writer, a ...any) { | ||
if _, err := fmt.Fprintln(w, a...); err != nil { | ||
panic(err) | ||
} | ||
} | ||
|
||
func MustFprintf(w io.Writer, format string, a ...any) { | ||
if _, err := fmt.Fprintf(w, format, a...); err != nil { | ||
panic(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,66 @@ | ||
module github.com/launchdarkly/sdk-test-harness/v2 | ||
|
||
go 1.19 | ||
go 1.22 | ||
|
||
toolchain go1.23.1 | ||
|
||
require ( | ||
github.com/fatih/color v1.13.0 | ||
github.com/aws/aws-sdk-go v1.55.5 | ||
github.com/aws/aws-sdk-go-v2/config v1.28.0 | ||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.36.2 | ||
github.com/fatih/color v1.16.0 | ||
github.com/gorilla/mux v1.8.0 | ||
github.com/hashicorp/consul/api v1.29.5 | ||
github.com/launchdarkly/eventsource v1.6.2 | ||
github.com/launchdarkly/go-jsonstream/v3 v3.0.0 | ||
github.com/launchdarkly/go-sdk-common/v3 v3.1.0 | ||
github.com/launchdarkly/go-server-sdk-evaluation/v3 v3.0.0 | ||
github.com/launchdarkly/go-test-helpers/v2 v2.3.2 | ||
github.com/stretchr/testify v1.7.0 | ||
golang.org/x/exp v0.0.0-20220823124025-807a23277127 | ||
gopkg.in/yaml.v3 v3.0.0 | ||
github.com/redis/go-redis/v9 v9.6.1 | ||
github.com/stretchr/testify v1.8.4 | ||
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 | ||
gopkg.in/yaml.v3 v3.0.1 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/armon/go-metrics v0.4.1 // indirect | ||
github.com/aws/aws-sdk-go-v2 v1.32.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/credentials v1.17.41 // indirect | ||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.17 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.21 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.21 // indirect | ||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.10.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sso v1.24.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.2 // indirect | ||
github.com/aws/aws-sdk-go-v2/service/sts v1.32.2 // indirect | ||
github.com/aws/smithy-go v1.22.0 // indirect | ||
github.com/cespare/xxhash/v2 v2.2.0 // indirect | ||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect | ||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect | ||
github.com/google/go-cmp v0.6.0 // indirect | ||
github.com/hashicorp/errwrap v1.1.0 // indirect | ||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect | ||
github.com/hashicorp/go-hclog v1.5.0 // indirect | ||
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/hashicorp/go-rootcerts v1.0.2 // indirect | ||
github.com/hashicorp/golang-lru v0.5.4 // indirect | ||
github.com/hashicorp/serf v0.10.1 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/launchdarkly/go-semver v1.0.2 // indirect | ||
github.com/mailru/easyjson v0.7.6 // indirect | ||
github.com/mattn/go-colorable v0.1.9 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/mitchellh/go-homedir v1.1.0 // indirect | ||
github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect | ||
github.com/rogpeppe/go-internal v1.9.0 // indirect | ||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect | ||
golang.org/x/net v0.28.0 // indirect | ||
golang.org/x/sys v0.24.0 // indirect | ||
google.golang.org/protobuf v1.34.1 // indirect | ||
gopkg.in/yaml.v2 v2.3.0 // indirect | ||
) |
Oops, something went wrong.