Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
abyssparanoia committed Nov 19, 2024
1 parent 06f4124 commit b683cee
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package goerr_test
import (
"testing"

"github.com/m-mizutani/goerr"
"github.com/abyssparanoia/goerr"
)

func newErrorWithBuilder() *goerr.Error {
Expand Down
20 changes: 10 additions & 10 deletions errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"testing"

"github.com/m-mizutani/goerr"
"github.com/abyssparanoia/goerr"
)

func oops() *goerr.Error {
Expand Down Expand Up @@ -39,13 +39,13 @@ func TestNew(t *testing.T) {
func TestWrapError(t *testing.T) {
err := wrapError()
st := fmt.Sprintf("%+v", err)
if !strings.Contains(st, "github.com/m-mizutani/goerr_test.wrapError") {
if !strings.Contains(st, "github.com/abyssparanoia/goerr_test.wrapError") {
t.Error("Stack trace 'wrapError' is not found")
}
if !strings.Contains(st, "github.com/m-mizutani/goerr_test.TestWrapError") {
if !strings.Contains(st, "github.com/abyssparanoia/goerr_test.TestWrapError") {
t.Error("Stack trace 'TestWrapError' is not found")
}
if strings.Contains(st, "github.com/m-mizutani/goerr_test.normalError") {
if strings.Contains(st, "github.com/abyssparanoia/goerr_test.normalError") {
t.Error("Stack trace 'normalError' is found")
}
if !strings.Contains(err.Error(), "orange: red") {
Expand All @@ -59,8 +59,8 @@ func TestStackTrace(t *testing.T) {
if len(st) != 4 {
t.Errorf("Expected stack length of 4, got %d", len(st))
}
if st[0].Func != "github.com/m-mizutani/goerr_test.oops" {
t.Error("Stack trace 'github.com/m-mizutani/goerr_test.oops' is not found")
if st[0].Func != "github.com/abyssparanoia/goerr_test.oops" {
t.Error("Stack trace 'github.com/abyssparanoia/goerr_test.oops' is not found")
}
if !regexp.MustCompile(`/goerr/errors_test\.go$`).MatchString(st[0].File) {
t.Error("Stack trace file is not correct")
Expand Down Expand Up @@ -188,8 +188,8 @@ func TestUnstack(t *testing.T) {
if len(st) == 0 {
t.Error("Expected stack trace length to be 0")
}
if st[0].Func != "github.com/m-mizutani/goerr_test.oops" {
t.Errorf("Not expected stack trace func name (github.com/m-mizutani/goerr_test.oops): %s", st[0].Func)
if st[0].Func != "github.com/abyssparanoia/goerr_test.oops" {
t.Errorf("Not expected stack trace func name (github.com/abyssparanoia/goerr_test.oops): %s", st[0].Func)
}
})

Expand All @@ -202,8 +202,8 @@ func TestUnstack(t *testing.T) {
if len(st1) == 0 {
t.Error("Expected stack trace length to be non-zero")
}
if st1[0].Func != "github.com/m-mizutani/goerr_test.TestUnstack.func2" {
t.Errorf("Not expected stack trace func name (github.com/m-mizutani/goerr_test.TestUnstack.func2): %s", st1[0].Func)
if st1[0].Func != "github.com/abyssparanoia/goerr_test.TestUnstack.func2" {
t.Errorf("Not expected stack trace func name (github.com/abyssparanoia/goerr_test.TestUnstack.func2): %s", st1[0].Func)
}
})

Expand Down
2 changes: 1 addition & 1 deletion examples/basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"time"

"github.com/m-mizutani/goerr"
"github.com/abyssparanoia/goerr"
)

func someAction(input string) error {
Expand Down
2 changes: 1 addition & 1 deletion examples/builder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log/slog"

"github.com/m-mizutani/goerr"
"github.com/abyssparanoia/goerr"
)

type object struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/errors_is/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"log"

"github.com/m-mizutani/goerr"
"github.com/abyssparanoia/goerr"
)

var errInvalidInput = errors.New("invalid input")
Expand Down
2 changes: 1 addition & 1 deletion examples/logging/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"log/slog"

"github.com/m-mizutani/goerr"
"github.com/abyssparanoia/goerr"
)

var errRuntime = errors.New("runtime error")
Expand Down
2 changes: 1 addition & 1 deletion examples/stacktrace_extract/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"os"

"github.com/m-mizutani/goerr"
"github.com/abyssparanoia/goerr"
)

func someAction(fname string) error {
Expand Down
2 changes: 1 addition & 1 deletion examples/stacktrace_print/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"log"

"github.com/m-mizutani/goerr"
"github.com/abyssparanoia/goerr"
)

func nestedAction2() error {
Expand Down
2 changes: 1 addition & 1 deletion examples/variables/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"strings"

"github.com/m-mizutani/goerr"
"github.com/abyssparanoia/goerr"
)

var errFormatMismatch = errors.New("format mismatch")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/m-mizutani/goerr
module github.com/abyssparanoia/goerr

go 1.21

Expand Down

0 comments on commit b683cee

Please sign in to comment.