Skip to content

Commit

Permalink
test: update test file to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuangls committed Apr 7, 2024
1 parent a3aeee5 commit 776a402
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"errors"
"fmt"

"github.com/liushuangls/go-anthropic"
"github.com/liushuangls/go-anthropic/v2"
)

func main() {
Expand Down Expand Up @@ -67,7 +67,7 @@ import (
"errors"
"fmt"

"github.com/liushuangls/go-anthropic"
"github.com/liushuangls/go-anthropic/v2"
)

func main() {
Expand Down Expand Up @@ -109,7 +109,7 @@ import (
"errors"
"fmt"

"github.com/liushuangls/go-anthropic"
"github.com/liushuangls/go-anthropic/v2"
)

func main() {
Expand Down Expand Up @@ -168,8 +168,8 @@ import (
"context"
"fmt"

"github.com/liushuangls/go-anthropic"
"github.com/liushuangls/go-anthropic/jsonschema"
"github.com/liushuangls/go-anthropic/v2"
"github.com/liushuangls/go-anthropic/v2/jsonschema"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions complete_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strings"
"testing"

"github.com/liushuangls/go-anthropic"
"github.com/liushuangls/go-anthropic/internal/test"
"github.com/liushuangls/go-anthropic/internal/test/checks"
"github.com/liushuangls/go-anthropic/v2"
"github.com/liushuangls/go-anthropic/v2/internal/test"
"github.com/liushuangls/go-anthropic/v2/internal/test/checks"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions complete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"
"time"

"github.com/liushuangls/go-anthropic"
"github.com/liushuangls/go-anthropic/internal/test"
"github.com/liushuangls/go-anthropic/v2"
"github.com/liushuangls/go-anthropic/v2/internal/test"
)

func TestComplete(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion jsonschema/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/liushuangls/go-anthropic/jsonschema"
"github.com/liushuangls/go-anthropic/v2/jsonschema"
)

func TestDefinition_MarshalJSON(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions message_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"testing"

"github.com/liushuangls/go-anthropic"
"github.com/liushuangls/go-anthropic/internal/test"
"github.com/liushuangls/go-anthropic/v2"
"github.com/liushuangls/go-anthropic/v2/internal/test"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"testing"
"time"

"github.com/liushuangls/go-anthropic"
"github.com/liushuangls/go-anthropic/internal/test"
"github.com/liushuangls/go-anthropic/internal/test/checks"
"github.com/liushuangls/go-anthropic/jsonschema"
"github.com/liushuangls/go-anthropic/v2"
"github.com/liushuangls/go-anthropic/v2/internal/test"
"github.com/liushuangls/go-anthropic/v2/internal/test/checks"
"github.com/liushuangls/go-anthropic/v2/jsonschema"
)

//go:embed internal/test/sources/*
Expand Down

0 comments on commit 776a402

Please sign in to comment.