Skip to content

Commit

Permalink
restore a bunch of files so we can have a smaller diff
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Dec 8, 2023
1 parent 7f298d7 commit 25a55a9
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 44 deletions.
3 changes: 1 addition & 2 deletions context/context_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package context

import (
"testing"

"github.com/stretchr/testify/assert"
"testing"
)

func TestOverride(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions internal/constraints/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ package constraints

import (
"fmt"
"testing"

"github.com/Unleash/unleash-client-go/v4/api"
"github.com/Unleash/unleash-client-go/v4/context"
"github.com/stretchr/testify/assert"
"testing"
)

type checkTestCase struct {
Expand Down
5 changes: 2 additions & 3 deletions internal/constraints/operator_date_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package constraints

import (
"testing"
"time"

"github.com/Unleash/unleash-client-go/v4/api"
"github.com/Unleash/unleash-client-go/v4/context"
"github.com/stretchr/testify/assert"
"testing"
"time"
)

func TestOperatorDate(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions internal/constraints/operator_in_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package constraints

import (
"testing"

"github.com/Unleash/unleash-client-go/v4/api"
"github.com/Unleash/unleash-client-go/v4/context"
"github.com/stretchr/testify/assert"
"testing"
)

func TestOperatorIn(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions internal/constraints/operator_num_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package constraints

import (
"testing"

"github.com/Unleash/unleash-client-go/v4/api"
"github.com/Unleash/unleash-client-go/v4/context"
"github.com/stretchr/testify/assert"
"testing"
)

func TestOperatorNum(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions internal/constraints/operator_semver_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package constraints

import (
"testing"

"github.com/Unleash/unleash-client-go/v4/api"
"github.com/Unleash/unleash-client-go/v4/context"
"github.com/stretchr/testify/assert"
"testing"
)

func TestOperatorSemver(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions internal/constraints/operator_str_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package constraints

import (
"testing"

"github.com/Unleash/unleash-client-go/v4/api"
"github.com/Unleash/unleash-client-go/v4/context"
"github.com/stretchr/testify/assert"
"testing"
)

func TestOperatorStr(t *testing.T) {
Expand Down
5 changes: 2 additions & 3 deletions internal/strategies/application_hostname_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package strategies

import (
"os"
"testing"

"github.com/Unleash/unleash-client-go/v4/context"
"github.com/Unleash/unleash-client-go/v4/strategy"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func TestApplicationHostnameStrategy_Name(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions internal/strategies/default_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package strategies

import (
"testing"

"github.com/stretchr/testify/assert"
"testing"
)

func TestDefaultStrategy_Name(t *testing.T) {
Expand Down
5 changes: 2 additions & 3 deletions internal/strategies/gradual_rollout_random_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
package strategies

import (
"strconv"
"testing"

"github.com/Unleash/unleash-client-go/v4/context"
"github.com/Unleash/unleash-client-go/v4/strategy"
"github.com/stretchr/testify/assert"
"strconv"
"testing"
)

func TestGradualRolloutRandomStrategy_Name(t *testing.T) {
Expand Down
6 changes: 2 additions & 4 deletions internal/strategies/gradual_rollout_session_id_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
//go:build norace
// +build norace

package strategies

import (
"strconv"
"testing"

"github.com/Unleash/unleash-client-go/v4/context"
"github.com/Unleash/unleash-client-go/v4/strategy"
"github.com/stretchr/testify/assert"
"strconv"
"testing"
)

func TestGradualRolloutSessionId_Name(t *testing.T) {
Expand Down
6 changes: 2 additions & 4 deletions internal/strategies/gradual_rollout_user_id_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
//go:build norace
// +build norace

package strategies

import (
"strconv"
"testing"

"github.com/Unleash/unleash-client-go/v4/context"
"github.com/Unleash/unleash-client-go/v4/strategy"
"github.com/stretchr/testify/assert"
"strconv"
"testing"
)

func TestGradualRolloutUserId_Name(t *testing.T) {
Expand Down
3 changes: 0 additions & 3 deletions internal/strategies/helpers_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build norace
// +build norace

package strategies

import (
Expand Down
6 changes: 1 addition & 5 deletions internal/strategies/remote_address_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
//go:build norace
// +build norace

package strategies

import (
"testing"

"github.com/Unleash/unleash-client-go/v4/context"
"github.com/Unleash/unleash-client-go/v4/strategy"
"github.com/stretchr/testify/assert"
"testing"
)

func TestRemoteAddressStrategy_Name(t *testing.T) {
Expand Down
6 changes: 1 addition & 5 deletions internal/strategies/user_with_id_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
//go:build norace
// +build norace

package strategies

import (
"testing"

"github.com/Unleash/unleash-client-go/v4/context"
"github.com/Unleash/unleash-client-go/v4/strategy"
"github.com/stretchr/testify/assert"
"testing"
)

func TestUserWithIdStrategy_Name(t *testing.T) {
Expand Down

0 comments on commit 25a55a9

Please sign in to comment.