mirror of
https://github.com/hanzoai/expr.git
synced 2026-09-24 16:58:58 +00:00
Vendor testify (#642)
This commit is contained in:
@@ -4,9 +4,10 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/expr-lang/expr/internal/testify/assert"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
"github.com/expr-lang/expr/test/coredns"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestCoreDNS(t *testing.T) {
|
||||
|
||||
@@ -5,9 +5,10 @@ import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
"github.com/expr-lang/expr/test/crowdsec"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestCrowdsec(t *testing.T) {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/expr-lang/expr/internal/testify/assert"
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
)
|
||||
|
||||
@@ -5,8 +5,9 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestGenerated(t *testing.T) {
|
||||
|
||||
@@ -3,8 +3,8 @@ package interface_method_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/expr-lang/expr/internal/testify/assert"
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package issues584_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/expr-lang/expr/internal/testify/assert"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
)
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/expr-lang/expr/internal/testify/assert"
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
"github.com/expr-lang/expr/test/mock"
|
||||
|
||||
@@ -3,7 +3,7 @@ package patch_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
"github.com/expr-lang/expr/ast"
|
||||
|
||||
@@ -3,10 +3,11 @@ package patch_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
"github.com/expr-lang/expr/ast"
|
||||
"github.com/expr-lang/expr/test/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
type lengthPatcher struct{}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
"github.com/expr-lang/expr/ast"
|
||||
|
||||
@@ -4,8 +4,9 @@ import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestPipes(t *testing.T) {
|
||||
|
||||
@@ -5,13 +5,14 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/expr-lang/expr/internal/testify/require"
|
||||
|
||||
"github.com/expr-lang/expr"
|
||||
"github.com/expr-lang/expr/checker"
|
||||
"github.com/expr-lang/expr/compiler"
|
||||
"github.com/expr-lang/expr/conf"
|
||||
"github.com/expr-lang/expr/parser"
|
||||
"github.com/expr-lang/expr/vm"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestTime(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user