Skip to content

Commit

Permalink
Update dependencies and module path
Browse files Browse the repository at this point in the history
  • Loading branch information
ezraisw committed Jul 14, 2024
1 parent bdbbb11 commit ddb374f
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 49 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Perform selective testing on a Go project based on a list of input files and usa
Run the following command:

```
$ go install github.com/pwnedgod/go-selectivetesting/cmd/selectivetesting@latest
$ go install github.com/ezraisw/go-selectivetesting/cmd/selectivetesting@latest
```

### Configuration
Expand Down Expand Up @@ -69,22 +69,22 @@ A configuration JSON file can also be passed in instead with `-cfgpath=<string>`
"groups": [
{
"name": "entity-model",
"patterns": ["github.com/pwnedgod/examplerepo/pkg/entity"]
"patterns": ["github.com/ezraisw/examplerepo/pkg/entity"]
},
{
"name": "httphandler",
"patterns": ["github.com/pwnedgod/examplerepo/pkg/http/handler/..."]
"patterns": ["github.com/ezraisw/examplerepo/pkg/http/handler/..."]
},
{
"name": "repo-external",
"patterns": [
"github.com/pwnedgod/examplerepo/pkg/grpc",
"github.com/pwnedgod/examplerepo/pkg/repository"
"github.com/ezraisw/examplerepo/pkg/grpc",
"github.com/ezraisw/examplerepo/pkg/repository"
]
},
{
"name": "usecase",
"patterns": ["github.com/pwnedgod/examplerepo/pkg/usecase/..."]
"patterns": ["github.com/ezraisw/examplerepo/pkg/usecase/..."]
}
],
"outputEmptyGroups": true,
Expand All @@ -93,15 +93,15 @@ A configuration JSON file can also be passed in instead with `-cfgpath=<string>`
"regexp": "^<<basepath>>/migration/.+\\.sql$",
"usedBy": [
{
"pkgPath": "github.com/pwnedgod/go-selectivetesting/example1/...",
"pkgPath": "github.com/ezraisw/go-selectivetesting/example1/...",
"all": true
},
{
"pkgPath": "github.com/pwnedgod/go-selectivetesting/example2/sub",
"pkgPath": "github.com/ezraisw/go-selectivetesting/example2/sub",
"objNames": ["FuncUsingNonGoFiles1", "FuncUsingNonGoFiles2"]
},
{
"pkgPath": "github.com/pwnedgod/go-selectivetesting/example2/sub",
"pkgPath": "github.com/ezraisw/go-selectivetesting/example2/sub",
"fileNames": ["foo.go", "bar.go"]
}
]
Expand All @@ -126,7 +126,7 @@ If you choose not to use `-gotestrun`, the application will output a JSON contai
"name": "entity-model",
"testedPkgs": [
{
"pkgPath": "github.com/pwnedgod/examplerepo/pkg/entity",
"pkgPath": "github.com/ezraisw/examplerepo/pkg/entity",
"relativePkgPath": "./pkg/entity",
"hasNotable": true,
"testNames": ["TestNewWishlist", "TestWishlist_Model"],
Expand All @@ -138,7 +138,7 @@ If you choose not to use `-gotestrun`, the application will output a JSON contai
"name": "httphandler",
"testedPkgs": [
{
"pkgPath": "github.com/pwnedgod/examplerepo/pkg/http/handler/api/v1/wishlist",
"pkgPath": "github.com/ezraisw/examplerepo/pkg/http/handler/api/v1/wishlist",
"relativePkgPath": "./pkg/http/handler/api/v1/wishlist",
"hasNotable": false,
"testNames": [
Expand All @@ -153,7 +153,7 @@ If you choose not to use `-gotestrun`, the application will output a JSON contai
"name": "repo-external",
"testedPkgs": [
{
"pkgPath": "github.com/pwnedgod/examplerepo/pkg/repository",
"pkgPath": "github.com/ezraisw/examplerepo/pkg/repository",
"relativePkgPath": "./pkg/repository",
"hasNotable": false,
"testNames": [
Expand All @@ -173,7 +173,7 @@ If you choose not to use `-gotestrun`, the application will output a JSON contai
"name": "usecase",
"testedPkgs": [
{
"pkgPath": "github.com/pwnedgod/examplerepo/pkg/usecase/wishlist",
"pkgPath": "github.com/ezraisw/examplerepo/pkg/usecase/wishlist",
"relativePkgPath": "./pkg/usecase/wishlist",
"hasNotable": false,
"testNames": [
Expand All @@ -199,5 +199,5 @@ If you instead want to do your own procedures, you can follow these instructions
### Dependency Installation

```
$ go get github.com/pwnedgod/go-selectivetesting
$ go get github.com/ezraisw/go-selectivetesting
```
2 changes: 1 addition & 1 deletion analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"regexp"
"strings"

"github.com/pwnedgod/go-selectivetesting/internal/util"
"github.com/ezraisw/go-selectivetesting/internal/util"
"golang.org/x/tools/go/packages"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/selectivetesting/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/pwnedgod/go-selectivetesting/internal/app"
"github.com/ezraisw/go-selectivetesting/internal/app"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/pwnedgod/go-selectivetesting
module github.com/ezraisw/go-selectivetesting

go 1.21

require (
dario.cat/mergo v1.0.0
golang.org/x/mod v0.12.0
golang.org/x/tools v0.13.0
golang.org/x/mod v0.19.0
golang.org/x/tools v0.23.0
)

require golang.org/x/sys v0.12.0 // indirect
require golang.org/x/sync v0.7.0 // indirect
14 changes: 6 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ=
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
golang.org/x/mod v0.19.0 h1:fEdghXQSo20giMthA7cd28ZC+jts4amQ3YMXiP5oMQ8=
golang.org/x/mod v0.19.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/tools v0.23.0 h1:SGsXPZ+2l4JsgaCKkx+FQ9YZ5XEtA1GZYuoDjenLjvg=
golang.org/x/tools v0.23.0/go.mod h1:pnu6ufv6vQkll6szChhK3C3L/ruaIv5eBeztNG8wtsI=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/pwnedgod/go-selectivetesting"
"github.com/ezraisw/go-selectivetesting"
)

func Run() error {
Expand Down
2 changes: 1 addition & 1 deletion internal/app/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"path/filepath"

"github.com/pwnedgod/go-selectivetesting"
"github.com/ezraisw/go-selectivetesting"
)

func parseArgs() (cfg config, notablePaths []string, err error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"

"dario.cat/mergo"
"github.com/pwnedgod/go-selectivetesting"
"github.com/ezraisw/go-selectivetesting"
"golang.org/x/mod/modfile"
)

Expand Down
32 changes: 16 additions & 16 deletions internal/app/debug.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package app

import (
"fmt"
"os"

"github.com/pwnedgod/go-selectivetesting"
)

func writeFileAnalyzerTo(path string, fa *selectivetesting.FileAnalyzer) error {
file, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE, 0755)
if err != nil {
return fmt.Errorf("could create output for analyzer debug: %w", err)
}
return jsonTo(file, true, fa)
}
package app

import (
"fmt"
"os"

"github.com/ezraisw/go-selectivetesting"
)

func writeFileAnalyzerTo(path string, fa *selectivetesting.FileAnalyzer) error {
file, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE, 0755)
if err != nil {
return fmt.Errorf("could create output for analyzer debug: %w", err)
}
return jsonTo(file, true, fa)
}
4 changes: 2 additions & 2 deletions internal/app/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sort"
"strings"

"github.com/pwnedgod/go-selectivetesting"
"github.com/pwnedgod/go-selectivetesting/internal/util"
"github.com/ezraisw/go-selectivetesting"
"github.com/ezraisw/go-selectivetesting/internal/util"
)

type testedPackageGroup struct {
Expand Down

0 comments on commit ddb374f

Please sign in to comment.