Skip to content

Commit

Permalink
Rename testing test package to trustedfunc package (#282)
Browse files Browse the repository at this point in the history
This PR does a simple rename for the test package since it now hosts
test code for more than `testing`, it contains test code for all modeled
(trusted) functions.
  • Loading branch information
yuxincs authored Oct 5, 2024
1 parent a7a5ca9 commit ca8aade
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion nilaway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestNilAway(t *testing.T) {
}{
{name: "Inference", patterns: []string{"go.uber.org/inference"}},
{name: "Contracts", patterns: []string{"go.uber.org/contracts", "go.uber.org/contracts/namedtypes", "go.uber.org/contracts/inference"}},
{name: "Testing", patterns: []string{"go.uber.org/testing"}},
{name: "TrustedFunc", patterns: []string{"go.uber.org/trustedfunc"}},
{name: "ErrorReturn", patterns: []string{"go.uber.org/errorreturn", "go.uber.org/errorreturn/inference"}},
{name: "Maps", patterns: []string{"go.uber.org/maps"}},
{name: "Slices", patterns: []string{"go.uber.org/slices", "go.uber.org/slices/inference"}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
package suite

import (
"go.uber.org/testing/github.com/stretchr/testify/assert"
"go.uber.org/testing/github.com/stretchr/testify/require"
"go.uber.org/trustedfunc/github.com/stretchr/testify/assert"
"go.uber.org/trustedfunc/github.com/stretchr/testify/require"
)

type any interface{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ This package aims to test any nilaway behavior specific to accomdating tests, su
<nilaway no inference>
*/
package testing
package trustedfunc

import (
"errors"
"os/exec"

"go.uber.org/testing/github.com/stretchr/testify/assert"
"go.uber.org/testing/github.com/stretchr/testify/require"
"go.uber.org/testing/github.com/stretchr/testify/suite"
"go.uber.org/testing/testing"
"go.uber.org/trustedfunc/github.com/stretchr/testify/assert"
"go.uber.org/trustedfunc/github.com/stretchr/testify/require"
"go.uber.org/trustedfunc/github.com/stretchr/testify/suite"
"go.uber.org/trustedfunc/testing"
)

type any interface{}
Expand Down

0 comments on commit ca8aade

Please sign in to comment.