From b8c66e824656f87a2dc1803a6770990ef5f64464 Mon Sep 17 00:00:00 2001 From: CHIKAMATSU Naohiro Date: Fri, 29 Mar 2024 22:48:30 +0900 Subject: [PATCH] Update --- .github/workflows/multi_ver_unittest.yml | 2 +- .gitmodules | 2 +- Makefile | 4 +- README.md | 52 +++++++++---------- css-selector/selector_test.go | 4 +- diagram.go | 4 +- doc/README_css-selector.md | 2 +- doc/README_jsonpath.md | 4 +- doc/README_plantuml.md | 4 +- doc/spectest.md | 4 +- example_test.go | 2 +- examples/echo/api_test.go | 4 +- examples/echo/go.mod | 10 ++-- examples/echo/go.sum | 16 +++--- examples/fiber/api_test.go | 4 +- examples/fiber/go.mod | 10 ++-- examples/fiber/go.sum | 16 +++--- examples/gin/api_test.go | 4 +- examples/gin/go.mod | 10 ++-- examples/gin/go.sum | 16 +++--- examples/ginkgo/go.mod | 10 ++-- examples/ginkgo/go.sum | 16 +++--- examples/ginkgo/server_test.go | 6 +-- examples/gorilla/api_test.go | 4 +- examples/gorilla/go.mod | 10 ++-- examples/gorilla/go.sum | 16 +++--- examples/graphql/api_test.go | 6 +-- examples/graphql/go.mod | 6 +-- examples/graphql/go.sum | 8 +-- examples/graphql/gqlgen.yml | 2 +- examples/graphql/graph/generated.go | 2 +- examples/graphql/graph/resolver.go | 2 +- examples/graphql/graph/schema.resolvers.go | 2 +- examples/graphql/server.go | 2 +- examples/httprouter/api_test.go | 4 +- examples/httprouter/go.mod | 10 ++-- examples/httprouter/go.sum | 16 +++--- examples/mocks/api_test.go | 2 +- examples/mocks/go.mod | 10 ++-- examples/mocks/go.sum | 16 +++--- examples/plantuml/api_test.go | 4 +- examples/plantuml/go.mod | 10 ++-- examples/plantuml/go.sum | 16 +++--- .../api_test.go | 4 +- .../go.mod | 10 ++-- .../go.sum | 16 +++--- .../api_test.go | 6 +-- .../go.mod | 10 ++-- .../go.sum | 16 +++--- .../test/test_support.go | 4 +- .../api_test.go | 4 +- .../go.mod | 10 ++-- .../go.sum | 16 +++--- examples/sequence-diagrams/api_test.go | 2 +- examples/sequence-diagrams/go.mod | 10 ++-- examples/sequence-diagrams/go.sum | 16 +++--- go.mod | 9 ++-- go.sum | 16 +++--- image/image.go | 2 +- jsonpath/jsonpath.go | 4 +- jsonpath/jsonpath_test.go | 4 +- jsonpath/jwt.go | 2 +- jsonpath/jwt_test.go | 4 +- jsonpath/mocks/mocks.go | 6 +-- jsonpath/mocks/mocks_test.go | 4 +- jsonschema/jsonschema.go | 2 +- jsonschema/jsonschema_test.go | 6 +-- mocks.go | 2 +- mocks/verifier.go | 2 +- plantuml/plantuml.go | 2 +- plantuml/plantuml_test.go | 2 +- spectest_test.go | 4 +- time_test.go | 2 +- x/db/db.go | 2 +- 74 files changed, 276 insertions(+), 277 deletions(-) diff --git a/.github/workflows/multi_ver_unittest.yml b/.github/workflows/multi_ver_unittest.yml index fc44297..3ced428 100644 --- a/.github/workflows/multi_ver_unittest.yml +++ b/.github/workflows/multi_ver_unittest.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: ["1.18", "1.20"] + go-version: ["1.18", "1.22"] steps: - uses: actions/checkout@v4 - name: Setup Go ${{ matrix.go-version }} diff --git a/.gitmodules b/.gitmodules index 88e3c7e..d8d105f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "aws"] path = aws -url = git@github.com:go-spectest/aws.git +url = git@github.com:nao1215/aws.git diff --git a/Makefile b/Makefile index 9c2a5de..b5b4a5b 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ GOOS = "" GOARCH = "" GO_PKGROOT = ./... GO_PACKAGES = $(shell $(GO_LIST) $(GO_PKGROOT)) -GO_LDFLAGS = -ldflags "-X github.com/go-spectest/spectest/version.TagVersion=${VERSION} -X github.com/go-spectest/spectest/version.Revision=$(GIT_REVISION)" +GO_LDFLAGS = -ldflags "-X github.com/nao1215/spectest/version.TagVersion=${VERSION} -X github.com/nao1215/spectest/version.Revision=$(GIT_REVISION)" build: ## Build binary env GO111MODULE=on GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO_BUILD) $(GO_LDFLAGS) -o $(APP) cmd/spectest/main.go @@ -29,4 +29,4 @@ clean: ## Clean up .DEFAULT_GOAL := help help: ## Show this help @grep -E '^[0-9a-zA-Z_-]+[[:blank:]]*:.*?## .*$$' $(MAKEFILE_LIST) | sort \ - | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[1;32m%-15s\033[0m %s\n", $$1, $$2}' \ No newline at end of file + | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[1;32m%-15s\033[0m %s\n", $$1, $$2}' diff --git a/README.md b/README.md index 805bf01..850849b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -[![Go Reference](https://pkg.go.dev/badge/github.com/go-spectest/spectest.svg)](https://pkg.go.dev/github.com/go-spectest/spectest) -[![LinuxUnitTest](https://github.com/go-spectest/spectest/actions/workflows/linux_test.yml/badge.svg)](https://github.com/go-spectest/spectest/actions/workflows/linux_test.yml) -[![MacUnitTest](https://github.com/go-spectest/spectest/actions/workflows/mac_test.yml/badge.svg)](https://github.com/go-spectest/spectest/actions/workflows/mac_test.yml) -[![WindowsUnitTest](https://github.com/go-spectest/spectest/actions/workflows/windows_test.yml/badge.svg)](https://github.com/go-spectest/spectest/actions/workflows/windows_test.yml) -[![UnitTestExampleCodes](https://github.com/go-spectest/spectest/actions/workflows/test-examples.yml/badge.svg)](https://github.com/go-spectest/spectest/actions/workflows/test-examples.yml) -[![reviewdog](https://github.com/go-spectest/spectest/actions/workflows/reviewdog.yml/badge.svg)](https://github.com/go-spectest/spectest/actions/workflows/reviewdog.yml) -[![Gosec](https://github.com/go-spectest/spectest/actions/workflows/gosec.yml/badge.svg)](https://github.com/go-spectest/spectest/actions/workflows/gosec.yml) -![Coverage](https://github.com/go-spectest/octocovs-central-repo/blob/main//badges/go-spectest/spectest/coverage.svg?raw=true) +[![Go Reference](https://pkg.go.dev/badge/github.com/nao1215/spectest.svg)](https://pkg.go.dev/github.com/nao1215/spectest) +[![LinuxUnitTest](https://github.com/nao1215/spectest/actions/workflows/linux_test.yml/badge.svg)](https://github.com/nao1215/spectest/actions/workflows/linux_test.yml) +[![MacUnitTest](https://github.com/nao1215/spectest/actions/workflows/mac_test.yml/badge.svg)](https://github.com/nao1215/spectest/actions/workflows/mac_test.yml) +[![WindowsUnitTest](https://github.com/nao1215/spectest/actions/workflows/windows_test.yml/badge.svg)](https://github.com/nao1215/spectest/actions/workflows/windows_test.yml) +[![UnitTestExampleCodes](https://github.com/nao1215/spectest/actions/workflows/test-examples.yml/badge.svg)](https://github.com/nao1215/spectest/actions/workflows/test-examples.yml) +[![reviewdog](https://github.com/nao1215/spectest/actions/workflows/reviewdog.yml/badge.svg)](https://github.com/nao1215/spectest/actions/workflows/reviewdog.yml) +[![Gosec](https://github.com/nao1215/spectest/actions/workflows/gosec.yml/badge.svg)](https://github.com/nao1215/spectest/actions/workflows/gosec.yml) +![Coverage](https://github.com/nao1215/octocovs-central-repo/blob/main//badges/nao1215/spectest/coverage.svg?raw=true) ## What is spectest? @@ -23,7 +23,7 @@ The spectest has its own unique use cases, [Use Cases of spectest](./doc/spectes ## Installation ```bash -go get -u github.com/go-spectest/spectest +go get -u github.com/nao1215/spectest ``` ## Demo @@ -36,28 +36,28 @@ go get -u github.com/go-spectest/spectest | Example | Comment | | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| [gin](https://github.com/go-spectest/spectest/tree/main/examples/gin) | popular martini-like web framework | -| [graphql](https://github.com/go-spectest/spectest/tree/main/examples/graphql) | using gqlgen.com to generate a graphql server | -| [gorilla](https://github.com/go-spectest/spectest/tree/main/examples/gorilla) | the gorilla web toolkit | -| [iris (broken)](https://github.com/go-spectest/spectest/tree/main/examples/iris) | iris web framework | -| [echo](https://github.com/go-spectest/spectest/tree/main/examples/echo) | High performance, extensible, minimalist Go web framework | -| [fiber](https://github.com/go-spectest/spectest/tree/main/examples/fiber) | Express inspired web framework written in Go | -| [httprouter](https://github.com/go-spectest/spectest/tree/main/examples/httprouter) | High performance HTTP request router that scales well | -| [mocks](https://github.com/go-spectest/spectest/tree/main/examples/mocks) | example mocking out external http calls | -| [sequence diagrams](https://github.com/go-spectest/spectest/tree/main/examples/sequence-diagrams) | generate sequence diagrams from tests | -| [Ginkgo](https://github.com/go-spectest/spectest/tree/main/examples/ginkgo) | Ginkgo BDD test framework| -| [plantuml](https://github.com/go-spectest/spectest/tree/main/examples/plantuml) | wxample generating plantuml| +| [gin](https://github.com/nao1215/spectest/tree/main/examples/gin) | popular martini-like web framework | +| [graphql](https://github.com/nao1215/spectest/tree/main/examples/graphql) | using gqlgen.com to generate a graphql server | +| [gorilla](https://github.com/nao1215/spectest/tree/main/examples/gorilla) | the gorilla web toolkit | +| [iris (broken)](https://github.com/nao1215/spectest/tree/main/examples/iris) | iris web framework | +| [echo](https://github.com/nao1215/spectest/tree/main/examples/echo) | High performance, extensible, minimalist Go web framework | +| [fiber](https://github.com/nao1215/spectest/tree/main/examples/fiber) | Express inspired web framework written in Go | +| [httprouter](https://github.com/nao1215/spectest/tree/main/examples/httprouter) | High performance HTTP request router that scales well | +| [mocks](https://github.com/nao1215/spectest/tree/main/examples/mocks) | example mocking out external http calls | +| [sequence diagrams](https://github.com/nao1215/spectest/tree/main/examples/sequence-diagrams) | generate sequence diagrams from tests | +| [Ginkgo](https://github.com/nao1215/spectest/tree/main/examples/ginkgo) | Ginkgo BDD test framework| +| [plantuml](https://github.com/nao1215/spectest/tree/main/examples/plantuml) | wxample generating plantuml| ### Companion libraries (Side projects) In the original apitest repository, side projects were managed in separate repositories. However, in spectest, these side projects are managed within the same repository. However, the difflib, which operates independently from spectest, and the malfunctioning aws package, are managed in separate repositories. | Library | Comment | | ----------------------------------------------------------------------- | -----------------------------------------------| -| [JSON Path](https://github.com/go-spectest/spectest/tree/main/jsonpath) | JSON Path assertion addons | -| [JOSN Schema](https://github.com/go-spectest/spectest/tree/main/jsonschema) | JSON Schema assertion addons | -| [CSS Selectors](https://github.com/go-spectest/spectest/tree/main/css-selector) | CSS selector assertion addons | -| [PlantUML](https://github.com/go-spectest/spectest/tree/main/plantuml) | Export sequence diagrams as plantUML | -| [DynamoDB (broken)](https://github.com/go-spectest/tree/main/aws) | Add DynamoDB interactions to sequence diagrams | +| [JSON Path](https://github.com/nao1215/spectest/tree/main/jsonpath) | JSON Path assertion addons | +| [JOSN Schema](https://github.com/nao1215/spectest/tree/main/jsonschema) | JSON Schema assertion addons | +| [CSS Selectors](https://github.com/nao1215/spectest/tree/main/css-selector) | CSS selector assertion addons | +| [PlantUML](https://github.com/nao1215/spectest/tree/main/plantuml) | Export sequence diagrams as plantUML | +| [DynamoDB (broken)](https://github.com/nao1215/tree/main/aws) | Add DynamoDB interactions to sequence diagrams | ### Credits @@ -86,7 +86,7 @@ func TestApi(t *testing.T) { #### JSONPath -For asserting on parts of the response body JSONPath may be used. A separate module must be installed which provides these assertions - `go get -u github.com/go-spectest/spectest/jsonpath`. This is packaged separately to keep this library dependency free. +For asserting on parts of the response body JSONPath may be used. A separate module must be installed which provides these assertions - `go get -u github.com/nao1215/spectest/jsonpath`. This is packaged separately to keep this library dependency free. Given the response is `{"a": 12345, "b": [{"key": "c", "value": "result"}]}` diff --git a/css-selector/selector_test.go b/css-selector/selector_test.go index 34e7fe5..41fc887 100644 --- a/css-selector/selector_test.go +++ b/css-selector/selector_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/PuerkitoBio/goquery" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" - selector "github.com/go-spectest/spectest/css-selector" + selector "github.com/nao1215/spectest/css-selector" ) func TestTextExists(t *testing.T) { diff --git a/diagram.go b/diagram.go index 976b57c..65ec2d7 100644 --- a/diagram.go +++ b/diagram.go @@ -13,8 +13,8 @@ import ( "strconv" "strings" - md "github.com/go-spectest/markdown" - "github.com/go-spectest/mermaid/sequence" + md "github.com/nao1215/markdown" + "github.com/nao1215/mermaid/sequence" ) type ( diff --git a/doc/README_css-selector.md b/doc/README_css-selector.md index 512b5e2..49bc187 100644 --- a/doc/README_css-selector.md +++ b/doc/README_css-selector.md @@ -1,6 +1,6 @@ # css-selector -Assertions for [spectest](https://github.com/go-spectest/spectest) using css selectors. +Assertions for [spectest](https://github.com/nao1215/spectest) using css selectors. ## Examples diff --git a/doc/README_jsonpath.md b/doc/README_jsonpath.md index 0311037..a11bed6 100644 --- a/doc/README_jsonpath.md +++ b/doc/README_jsonpath.md @@ -1,6 +1,6 @@ # jsonpath -This library provides jsonpath assertions for [spectest](https://github.com/go-spectest/spectest). +This library provides jsonpath assertions for [spectest](https://github.com/nao1215/spectest). ## Supported OS - Linux @@ -10,7 +10,7 @@ This library provides jsonpath assertions for [spectest](https://github.com/go-s ## Installation ```bash -go get -u github.com/go-spectest/spectest +go get -u github.com/nao1215/spectest ``` ## Examples diff --git a/doc/README_plantuml.md b/doc/README_plantuml.md index cd5e06a..2b20bd6 100644 --- a/doc/README_plantuml.md +++ b/doc/README_plantuml.md @@ -1,10 +1,10 @@ # plantuml -Formats the results of an [spectest](https://github.com/go-spectest/spectest) run as plant uml markup. +Formats the results of an [spectest](https://github.com/nao1215/spectest) run as plant uml markup. ## Installation ```bash -go get -u github.com/go-spectest/plantuml +go get -u github.com/nao1215/plantuml ``` ## Example diff --git a/doc/spectest.md b/doc/spectest.md index 960aa37..0c06b21 100644 --- a/doc/spectest.md +++ b/doc/spectest.md @@ -1,7 +1,7 @@ # Use Cases of spectest ## Installation of spectest cli ```shell -go install github.com/go-spectest/spectest/cmd/spectest@latest +go install github.com/nao1215/spectest/cmd/spectest@latest ``` ## User-friendly 'go test' @@ -54,7 +54,7 @@ You execute the following command to generate an index file: spectest index docs --title "naraku api result" ``` -[Output](https://github.com/go-spectest/naraku/blob/main/docs/index.md): +[Output](https://github.com/nao1215/naraku/blob/main/docs/index.md): ![index_result](./image/index.png) diff --git a/example_test.go b/example_test.go index 0dad53d..ef119a2 100644 --- a/example_test.go +++ b/example_test.go @@ -11,7 +11,7 @@ import ( "path/filepath" "testing" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" ) func TestExample(t *testing.T) { diff --git a/examples/echo/api_test.go b/examples/echo/api_test.go index 47410c2..12dba8a 100644 --- a/examples/echo/api_test.go +++ b/examples/echo/api_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/jsonpath" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/jsonpath" ) func TestGetUserCookieMatching(t *testing.T) { diff --git a/examples/echo/go.mod b/examples/echo/go.mod index acc0107..a9f9667 100644 --- a/examples/echo/go.mod +++ b/examples/echo/go.mod @@ -1,9 +1,9 @@ -module github.com/go-spectest/spectest/examples/echo +module github.com/nao1215/spectest/examples/echo go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/labstack/echo v3.3.10+incompatible ) @@ -11,9 +11,9 @@ require ( github.com/PaesslerAG/gval v1.0.0 // indirect github.com/PaesslerAG/jsonpath v0.1.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.1 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/labstack/gommon v0.4.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect diff --git a/examples/echo/go.sum b/examples/echo/go.sum index 810076c..994c79b 100644 --- a/examples/echo/go.sum +++ b/examples/echo/go.sum @@ -6,14 +6,14 @@ github.com/PaesslerAG/jsonpath v0.1.1/go.mod h1:lVboNxFGal/VwW6d9JzIy56bUsYAP6tH github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/karrick/godirwalk v1.17.0 h1:b4kY7nqDdioR/6qnbHQyDvmA17u5G1cZ6J+CZXwSWoI= github.com/karrick/godirwalk v1.17.0/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= diff --git a/examples/fiber/api_test.go b/examples/fiber/api_test.go index c7f4ddc..5384f71 100644 --- a/examples/fiber/api_test.go +++ b/examples/fiber/api_test.go @@ -5,8 +5,8 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/jsonpath" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/jsonpath" "github.com/gofiber/fiber/v2" ) diff --git a/examples/fiber/go.mod b/examples/fiber/go.mod index de4e199..168c752 100644 --- a/examples/fiber/go.mod +++ b/examples/fiber/go.mod @@ -1,9 +1,9 @@ -module github.com/go-spectest/spectest/examples/fiber +module github.com/nao1215/spectest/examples/fiber go 1.18 require ( - github.com/go-spectest/spectest v0.0.15 + github.com/nao1215/spectest v0.0.15 github.com/gofiber/fiber/v2 v2.52.4 ) @@ -12,9 +12,9 @@ require ( github.com/PaesslerAG/jsonpath v0.1.1 // indirect github.com/andybalholm/brotli v1.0.5 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.6 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.6 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/google/uuid v1.5.0 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/klauspost/compress v1.17.0 // indirect diff --git a/examples/fiber/go.sum b/examples/fiber/go.sum index 259c0ce..5380f40 100644 --- a/examples/fiber/go.sum +++ b/examples/fiber/go.sum @@ -7,14 +7,14 @@ github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/ github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.6 h1:S1KBMTYLwaF+gscqdG2XU4ne0axqAWDuFuGrOOv2a80= -github.com/go-spectest/markdown v0.0.6/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.15 h1:eSKPVVjnD+gNYOxZ8vfV3B7gR/e3yi6/kc9lqQddNFs= -github.com/go-spectest/spectest v0.0.15/go.mod h1:fgAZM8EeVPEE5/dIS0AHY9SPzy5IYVu+ZxLZXstqA1U= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.6 h1:S1KBMTYLwaF+gscqdG2XU4ne0axqAWDuFuGrOOv2a80= +github.com/nao1215/markdown v0.0.6/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.15 h1:eSKPVVjnD+gNYOxZ8vfV3B7gR/e3yi6/kc9lqQddNFs= +github.com/nao1215/spectest v0.0.15/go.mod h1:fgAZM8EeVPEE5/dIS0AHY9SPzy5IYVu+ZxLZXstqA1U= github.com/gofiber/fiber/v2 v2.52.4 h1:P+T+4iK7VaqUsq2PALYEfBBo6bJZ4q3FP8cZ84EggTM= github.com/gofiber/fiber/v2 v2.52.4/go.mod h1:KEOE+cXMhXG0zHc9d8+E38hoX+ZN7bhOtgeF2oT6jrQ= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= diff --git a/examples/gin/api_test.go b/examples/gin/api_test.go index 2bcec16..a102c53 100644 --- a/examples/gin/api_test.go +++ b/examples/gin/api_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/jsonpath" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/jsonpath" ) func TestGetUserCookieMatching(t *testing.T) { diff --git a/examples/gin/go.mod b/examples/gin/go.mod index ccabcf0..62ab6da 100644 --- a/examples/gin/go.mod +++ b/examples/gin/go.mod @@ -1,10 +1,10 @@ -module github.com/go-spectest/spectest/examples/gin +module github.com/nao1215/spectest/examples/gin go 1.18 require ( github.com/gin-gonic/gin v1.9.1 - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 ) require ( @@ -18,9 +18,9 @@ require ( github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-playground/validator/v10 v10.14.0 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/goccy/go-json v0.10.2 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/karrick/godirwalk v1.17.0 // indirect diff --git a/examples/gin/go.sum b/examples/gin/go.sum index 74b1704..c490217 100644 --- a/examples/gin/go.sum +++ b/examples/gin/go.sum @@ -26,14 +26,14 @@ github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJn github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg/+t63MyGU2n5js= github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= diff --git a/examples/ginkgo/go.mod b/examples/ginkgo/go.mod index aa02287..c0ddda4 100644 --- a/examples/ginkgo/go.mod +++ b/examples/ginkgo/go.mod @@ -1,9 +1,9 @@ -module github.com/go-spectest/spectest/examples/ginkgo +module github.com/nao1215/spectest/examples/ginkgo go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/gorilla/mux v1.8.1 github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.31.1 @@ -14,9 +14,9 @@ require ( github.com/PaesslerAG/jsonpath v0.1.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/fsnotify/fsnotify v1.4.9 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/kr/text v0.2.0 // indirect diff --git a/examples/ginkgo/go.sum b/examples/ginkgo/go.sum index 4db2af4..a488d5b 100644 --- a/examples/ginkgo/go.sum +++ b/examples/ginkgo/go.sum @@ -11,14 +11,14 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= diff --git a/examples/ginkgo/server_test.go b/examples/ginkgo/server_test.go index 6705401..299f32b 100644 --- a/examples/ginkgo/server_test.go +++ b/examples/ginkgo/server_test.go @@ -3,9 +3,9 @@ package server_test import ( "net/http" - "github.com/go-spectest/spectest" - server "github.com/go-spectest/spectest/examples/ginkgo" - "github.com/go-spectest/spectest/jsonpath" + "github.com/nao1215/spectest" + server "github.com/nao1215/spectest/examples/ginkgo" + "github.com/nao1215/spectest/jsonpath" "github.com/gorilla/mux" . "github.com/onsi/ginkgo" ) diff --git a/examples/gorilla/api_test.go b/examples/gorilla/api_test.go index 2bcec16..a102c53 100644 --- a/examples/gorilla/api_test.go +++ b/examples/gorilla/api_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/jsonpath" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/jsonpath" ) func TestGetUserCookieMatching(t *testing.T) { diff --git a/examples/gorilla/go.mod b/examples/gorilla/go.mod index 1ebd6fc..b83fa36 100644 --- a/examples/gorilla/go.mod +++ b/examples/gorilla/go.mod @@ -1,9 +1,9 @@ -module github.com/go-spectest/spectest/examples/gorilla +module github.com/nao1215/spectest/examples/gorilla go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/gorilla/mux v1.8.1 ) @@ -11,9 +11,9 @@ require ( github.com/PaesslerAG/gval v1.0.0 // indirect github.com/PaesslerAG/jsonpath v0.1.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/nao1215/gorky v0.2.1 // indirect diff --git a/examples/gorilla/go.sum b/examples/gorilla/go.sum index 0e98e7c..9344aa7 100644 --- a/examples/gorilla/go.sum +++ b/examples/gorilla/go.sum @@ -5,14 +5,14 @@ github.com/PaesslerAG/jsonpath v0.1.1 h1:c1/AToHQMVsduPAa4Vh6xp2U0evy4t8SWp8imEs github.com/PaesslerAG/jsonpath v0.1.1/go.mod h1:lVboNxFGal/VwW6d9JzIy56bUsYAP6tH/x80vjnCseY= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= diff --git a/examples/graphql/api_test.go b/examples/graphql/api_test.go index 1803b28..3fc8b37 100644 --- a/examples/graphql/api_test.go +++ b/examples/graphql/api_test.go @@ -4,9 +4,9 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/examples/graphql/graph" - "github.com/go-spectest/spectest/jsonpath" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/examples/graphql/graph" + "github.com/nao1215/spectest/jsonpath" ) func TestQueryEmpty(t *testing.T) { diff --git a/examples/graphql/go.mod b/examples/graphql/go.mod index 6a03274..1122b8f 100644 --- a/examples/graphql/go.mod +++ b/examples/graphql/go.mod @@ -1,10 +1,10 @@ -module github.com/go-spectest/spectest/examples/graphql +module github.com/nao1215/spectest/examples/graphql go 1.21.3 require ( github.com/99designs/gqlgen v0.17.39 - github.com/go-spectest/spectest v0.0.13 + github.com/nao1215/spectest v0.0.13 github.com/vektah/gqlparser/v2 v2.5.10 ) @@ -14,7 +14,7 @@ require ( github.com/agnivade/levenshtein v1.1.1 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect github.com/google/uuid v1.3.0 // indirect github.com/gorilla/websocket v1.5.0 // indirect github.com/hashicorp/golang-lru/v2 v2.0.3 // indirect diff --git a/examples/graphql/go.sum b/examples/graphql/go.sum index e443b0b..9ee65f3 100644 --- a/examples/graphql/go.sum +++ b/examples/graphql/go.sum @@ -17,10 +17,10 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g= github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/spectest v0.0.8 h1:mSaeTAusRVrXgZKO7/gs97pEZFpYlTdt11HC1ZpZ13Q= -github.com/go-spectest/spectest v0.0.8/go.mod h1:6SlDj442dt7HlrG+lf8QtN4rk8vkL0e18Cl0yqL1w68= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/spectest v0.0.8 h1:mSaeTAusRVrXgZKO7/gs97pEZFpYlTdt11HC1ZpZ13Q= +github.com/nao1215/spectest v0.0.8/go.mod h1:6SlDj442dt7HlrG+lf8QtN4rk8vkL0e18Cl0yqL1w68= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= diff --git a/examples/graphql/gqlgen.yml b/examples/graphql/gqlgen.yml index 13c6524..5397b30 100644 --- a/examples/graphql/gqlgen.yml +++ b/examples/graphql/gqlgen.yml @@ -66,7 +66,7 @@ resolver: # gqlgen will search for any type names in the schema in these go packages # if they match it will use them, otherwise it will generate them. autobind: -# - "github.com/go-spectest/spectest/examples/graphql/graph/model" +# - "github.com/nao1215/spectest/examples/graphql/graph/model" # This section declares type mapping between the GraphQL and go type systems # diff --git a/examples/graphql/graph/generated.go b/examples/graphql/graph/generated.go index 05a4453..bcd4261 100644 --- a/examples/graphql/graph/generated.go +++ b/examples/graphql/graph/generated.go @@ -14,7 +14,7 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql/introspection" - "github.com/go-spectest/spectest/examples/graphql/graph/model" + "github.com/nao1215/spectest/examples/graphql/graph/model" gqlparser "github.com/vektah/gqlparser/v2" "github.com/vektah/gqlparser/v2/ast" ) diff --git a/examples/graphql/graph/resolver.go b/examples/graphql/graph/resolver.go index 1221783..49ae979 100644 --- a/examples/graphql/graph/resolver.go +++ b/examples/graphql/graph/resolver.go @@ -1,7 +1,7 @@ package graph import ( - "github.com/go-spectest/spectest/examples/graphql/graph/model" + "github.com/nao1215/spectest/examples/graphql/graph/model" ) // This file will not be regenerated automatically. diff --git a/examples/graphql/graph/schema.resolvers.go b/examples/graphql/graph/schema.resolvers.go index d5260c5..b0d45a6 100644 --- a/examples/graphql/graph/schema.resolvers.go +++ b/examples/graphql/graph/schema.resolvers.go @@ -7,7 +7,7 @@ package graph import ( "context" - "github.com/go-spectest/spectest/examples/graphql/graph/model" + "github.com/nao1215/spectest/examples/graphql/graph/model" ) // CreateTodo is the resolver for the createTodo field. diff --git a/examples/graphql/server.go b/examples/graphql/server.go index 9661488..4399181 100644 --- a/examples/graphql/server.go +++ b/examples/graphql/server.go @@ -5,7 +5,7 @@ import ( "net/http" "os" - "github.com/go-spectest/spectest/examples/graphql/graph" + "github.com/nao1215/spectest/examples/graphql/graph" ) const defaultPort = "8080" diff --git a/examples/httprouter/api_test.go b/examples/httprouter/api_test.go index e2533ad..d48ced1 100644 --- a/examples/httprouter/api_test.go +++ b/examples/httprouter/api_test.go @@ -4,8 +4,8 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/jsonpath" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/jsonpath" ) func TestGetUserCookieMatching(t *testing.T) { diff --git a/examples/httprouter/go.mod b/examples/httprouter/go.mod index 0ed6ae7..0db8ba0 100644 --- a/examples/httprouter/go.mod +++ b/examples/httprouter/go.mod @@ -1,9 +1,9 @@ -module github.com/go-spectest/spectest/examples/httprouter +module github.com/nao1215/spectest/examples/httprouter go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/julienschmidt/httprouter v1.3.0 ) @@ -11,9 +11,9 @@ require ( github.com/PaesslerAG/gval v1.0.0 // indirect github.com/PaesslerAG/jsonpath v0.1.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/nao1215/gorky v0.2.1 // indirect diff --git a/examples/httprouter/go.sum b/examples/httprouter/go.sum index be3513d..77df259 100644 --- a/examples/httprouter/go.sum +++ b/examples/httprouter/go.sum @@ -5,14 +5,14 @@ github.com/PaesslerAG/jsonpath v0.1.1 h1:c1/AToHQMVsduPAa4Vh6xp2U0evy4t8SWp8imEs github.com/PaesslerAG/jsonpath v0.1.1/go.mod h1:lVboNxFGal/VwW6d9JzIy56bUsYAP6tH/x80vjnCseY= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= diff --git a/examples/mocks/api_test.go b/examples/mocks/api_test.go index d59266c..6eaca58 100644 --- a/examples/mocks/api_test.go +++ b/examples/mocks/api_test.go @@ -5,7 +5,7 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" ) func TestGetUserSuccess(t *testing.T) { diff --git a/examples/mocks/go.mod b/examples/mocks/go.mod index 461e865..0a21cb8 100644 --- a/examples/mocks/go.mod +++ b/examples/mocks/go.mod @@ -1,17 +1,17 @@ -module github.com/go-spectest/spectest/examples/mocks +module github.com/nao1215/spectest/examples/mocks go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/gorilla/mux v1.8.1 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/nao1215/gorky v0.2.1 // indirect diff --git a/examples/mocks/go.sum b/examples/mocks/go.sum index e067c5b..4ec1015 100644 --- a/examples/mocks/go.sum +++ b/examples/mocks/go.sum @@ -1,13 +1,13 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= diff --git a/examples/plantuml/api_test.go b/examples/plantuml/api_test.go index 3057e92..71b910d 100644 --- a/examples/plantuml/api_test.go +++ b/examples/plantuml/api_test.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/plantuml" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/plantuml" ) func TestGetUser(t *testing.T) { diff --git a/examples/plantuml/go.mod b/examples/plantuml/go.mod index c89ded0..6f5f15c 100644 --- a/examples/plantuml/go.mod +++ b/examples/plantuml/go.mod @@ -1,17 +1,17 @@ -module github.com/go-spectest/spectest-examples/plantuml +module github.com/nao1215/spectest-examples/plantuml go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/gorilla/mux v1.8.1 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/nao1215/gorky v0.2.1 // indirect diff --git a/examples/plantuml/go.sum b/examples/plantuml/go.sum index e067c5b..4ec1015 100644 --- a/examples/plantuml/go.sum +++ b/examples/plantuml/go.sum @@ -1,13 +1,13 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= diff --git a/examples/sequence-diagrams-with-mysql-database/api_test.go b/examples/sequence-diagrams-with-mysql-database/api_test.go index c130de6..8ebfe8f 100644 --- a/examples/sequence-diagrams-with-mysql-database/api_test.go +++ b/examples/sequence-diagrams-with-mysql-database/api_test.go @@ -7,8 +7,8 @@ import ( "os" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/x/db" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/x/db" "github.com/jmoiron/sqlx" uuid "github.com/satori/go.uuid" ) diff --git a/examples/sequence-diagrams-with-mysql-database/go.mod b/examples/sequence-diagrams-with-mysql-database/go.mod index a36539f..2703042 100644 --- a/examples/sequence-diagrams-with-mysql-database/go.mod +++ b/examples/sequence-diagrams-with-mysql-database/go.mod @@ -1,9 +1,9 @@ -module github.com/go-spectest/spectest/examples/sequence-diagrams-with-mysql-database +module github.com/nao1215/spectest/examples/sequence-diagrams-with-mysql-database go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/go-sql-driver/mysql v1.8.0 github.com/gorilla/mux v1.8.1 github.com/jmoiron/sqlx v1.3.5 @@ -14,9 +14,9 @@ require ( require ( filippo.io/edwards25519 v1.1.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/nao1215/gorky v0.2.1 // indirect diff --git a/examples/sequence-diagrams-with-mysql-database/go.sum b/examples/sequence-diagrams-with-mysql-database/go.sum index 70e8512..bc02ceb 100644 --- a/examples/sequence-diagrams-with-mysql-database/go.sum +++ b/examples/sequence-diagrams-with-mysql-database/go.sum @@ -2,14 +2,14 @@ filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-sql-driver/mysql v1.8.0 h1:UtktXaU2Nb64z/pLiGIxY4431SJ4/dR5cjMmlVHgnT4= github.com/go-sql-driver/mysql v1.8.0/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= diff --git a/examples/sequence-diagrams-with-postgres-database/api_test.go b/examples/sequence-diagrams-with-postgres-database/api_test.go index 167704e..d7c4963 100644 --- a/examples/sequence-diagrams-with-postgres-database/api_test.go +++ b/examples/sequence-diagrams-with-postgres-database/api_test.go @@ -6,9 +6,9 @@ import ( "os" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/examples/sequence-diagrams-with-postgres-database/test" - _ "github.com/go-spectest/spectest/examples/sequence-diagrams-with-postgres-database/test" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/examples/sequence-diagrams-with-postgres-database/test" + _ "github.com/nao1215/spectest/examples/sequence-diagrams-with-postgres-database/test" "github.com/jmoiron/sqlx" uuid "github.com/satori/go.uuid" ) diff --git a/examples/sequence-diagrams-with-postgres-database/go.mod b/examples/sequence-diagrams-with-postgres-database/go.mod index e3020e9..c6c5b17 100644 --- a/examples/sequence-diagrams-with-postgres-database/go.mod +++ b/examples/sequence-diagrams-with-postgres-database/go.mod @@ -1,9 +1,9 @@ -module github.com/go-spectest/spectest/examples/sequence-diagrams-with-postgres-database +module github.com/nao1215/spectest/examples/sequence-diagrams-with-postgres-database go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/gorilla/mux v1.8.1 github.com/jmoiron/sqlx v1.3.5 github.com/lib/pq v1.10.9 @@ -13,9 +13,9 @@ require ( require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/nao1215/gorky v0.2.1 // indirect diff --git a/examples/sequence-diagrams-with-postgres-database/go.sum b/examples/sequence-diagrams-with-postgres-database/go.sum index 766ddd6..81b9f9e 100644 --- a/examples/sequence-diagrams-with-postgres-database/go.sum +++ b/examples/sequence-diagrams-with-postgres-database/go.sum @@ -1,13 +1,13 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= diff --git a/examples/sequence-diagrams-with-postgres-database/test/test_support.go b/examples/sequence-diagrams-with-postgres-database/test/test_support.go index ac45280..1f2cc1e 100644 --- a/examples/sequence-diagrams-with-postgres-database/test/test_support.go +++ b/examples/sequence-diagrams-with-postgres-database/test/test_support.go @@ -3,8 +3,8 @@ package test import ( "database/sql" - "github.com/go-spectest/spectest" - apitestdb "github.com/go-spectest/spectest/x/db" + "github.com/nao1215/spectest" + apitestdb "github.com/nao1215/spectest/x/db" "github.com/jmoiron/sqlx" "github.com/pressly/goose" ) diff --git a/examples/sequence-diagrams-with-sqlite-database/api_test.go b/examples/sequence-diagrams-with-sqlite-database/api_test.go index 4bd4a5f..af86f11 100644 --- a/examples/sequence-diagrams-with-sqlite-database/api_test.go +++ b/examples/sequence-diagrams-with-sqlite-database/api_test.go @@ -7,8 +7,8 @@ import ( "os" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/x/db" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/x/db" "github.com/jmoiron/sqlx" uuid "github.com/satori/go.uuid" ) diff --git a/examples/sequence-diagrams-with-sqlite-database/go.mod b/examples/sequence-diagrams-with-sqlite-database/go.mod index f08e8b1..8341a8b 100644 --- a/examples/sequence-diagrams-with-sqlite-database/go.mod +++ b/examples/sequence-diagrams-with-sqlite-database/go.mod @@ -1,9 +1,9 @@ -module github.com/go-spectest/spectest/examples/sequence-diagrams-with-sqlite-database +module github.com/nao1215/spectest/examples/sequence-diagrams-with-sqlite-database go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/gorilla/mux v1.8.1 github.com/jmoiron/sqlx v1.3.5 github.com/mattn/go-sqlite3 v1.14.19 @@ -13,9 +13,9 @@ require ( require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/nao1215/gorky v0.2.1 // indirect diff --git a/examples/sequence-diagrams-with-sqlite-database/go.sum b/examples/sequence-diagrams-with-sqlite-database/go.sum index 115d959..ee22ef0 100644 --- a/examples/sequence-diagrams-with-sqlite-database/go.sum +++ b/examples/sequence-diagrams-with-sqlite-database/go.sum @@ -1,13 +1,13 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= diff --git a/examples/sequence-diagrams/api_test.go b/examples/sequence-diagrams/api_test.go index 17e4101..a07d6f8 100644 --- a/examples/sequence-diagrams/api_test.go +++ b/examples/sequence-diagrams/api_test.go @@ -4,7 +4,7 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" ) func TestGetUserWithDefaultReportFormatter(t *testing.T) { diff --git a/examples/sequence-diagrams/go.mod b/examples/sequence-diagrams/go.mod index 1a42a1e..76ee744 100644 --- a/examples/sequence-diagrams/go.mod +++ b/examples/sequence-diagrams/go.mod @@ -1,17 +1,17 @@ -module github.com/go-spectest/spectest/examples/sequence-diagrams +module github.com/nao1215/spectest/examples/sequence-diagrams go 1.18 require ( - github.com/go-spectest/spectest v0.0.18 + github.com/nao1215/spectest v0.0.18 github.com/gorilla/mux v1.8.1 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 // indirect - github.com/go-spectest/markdown v0.0.7 // indirect - github.com/go-spectest/mermaid v0.0.1 // indirect + github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 // indirect + github.com/nao1215/markdown v0.0.7 // indirect + github.com/nao1215/mermaid v0.0.1 // indirect github.com/karrick/godirwalk v1.17.0 // indirect github.com/mattn/go-runewidth v0.0.14 // indirect github.com/nao1215/gorky v0.2.1 // indirect diff --git a/examples/sequence-diagrams/go.sum b/examples/sequence-diagrams/go.sum index e067c5b..4ec1015 100644 --- a/examples/sequence-diagrams/go.sum +++ b/examples/sequence-diagrams/go.sum @@ -1,13 +1,13 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= -github.com/go-spectest/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= -github.com/go-spectest/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/spectest v0.0.18 h1:ni/m9HQJpnt2OhOMk0iKwR3PcxVVm57bycvCePJj+Uk= +github.com/nao1215/spectest v0.0.18/go.mod h1:uJr62Wbe6+vJ4xepfId8aodSOulwOl6Y1ikRJbKhWdE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= diff --git a/go.mod b/go.mod index f5560cc..f0bc0ee 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/go-spectest/spectest +module github.com/nao1215/spectest go 1.19 @@ -7,10 +7,9 @@ require ( github.com/PuerkitoBio/goquery v1.9.1 github.com/davecgh/go-spew v1.1.1 github.com/fatih/color v1.16.0 - github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 - github.com/go-spectest/imaging v1.0.6 - github.com/go-spectest/markdown v0.0.7 - github.com/go-spectest/mermaid v0.0.1 + github.com/nao1215/imaging v1.0.7 + github.com/nao1215/markdown v0.0.8 + github.com/nao1215/mermaid v0.0.2 github.com/google/go-cmp v0.6.0 github.com/gorilla/websocket v1.5.1 github.com/n7olkachev/imgdiff v1.0.2 diff --git a/go.sum b/go.sum index 6843e32..b1606e1 100644 --- a/go.sum +++ b/go.sum @@ -15,14 +15,14 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= -github.com/go-spectest/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= -github.com/go-spectest/imaging v1.0.6 h1:b7qzcXLs1p9uZMjAKO+oe+a6EGo5JbwPDkcWafmTnX8= -github.com/go-spectest/imaging v1.0.6/go.mod h1:/AyhBt5HEFGDPy2AxP+hcV5NH8QQpftJP9g3yGOVtvs= -github.com/go-spectest/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= -github.com/go-spectest/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= -github.com/go-spectest/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= -github.com/go-spectest/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9 h1:I05FIUaZLNe9Jo6ZCvODDGBqHMk3TYd7V/wV9dZhwXk= +github.com/nao1215/diff v0.0.0-20231006143314-ce490574d4a9/go.mod h1:wWRXl4ClWLDIPkL/lS8SSxojHRg1cGngvPcya/mYhf0= +github.com/nao1215/imaging v1.0.6 h1:b7qzcXLs1p9uZMjAKO+oe+a6EGo5JbwPDkcWafmTnX8= +github.com/nao1215/imaging v1.0.6/go.mod h1:/AyhBt5HEFGDPy2AxP+hcV5NH8QQpftJP9g3yGOVtvs= +github.com/nao1215/markdown v0.0.7 h1:Pr+A/YBCtEruReeMMzBKQ4ftvNtlWuaiWRqgNaETA8Q= +github.com/nao1215/markdown v0.0.7/go.mod h1:OaFedfVlu5+eqe5tI2j3+LD/39T7k5JZAklxTul98EQ= +github.com/nao1215/mermaid v0.0.1 h1:Mi4dxGbdW1swgOqsUaSNQaKHO/mgO7Afk0Qwt4ASa2Y= +github.com/nao1215/mermaid v0.0.1/go.mod h1:S3YmRsGuV/EsSadoMn1C/XHr8+aXZ33UON8nuD+xi3w= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= diff --git a/image/image.go b/image/image.go index b83e27e..3551b3a 100644 --- a/image/image.go +++ b/image/image.go @@ -7,7 +7,7 @@ import ( "net/http" "os" - "github.com/go-spectest/imaging" + "github.com/nao1215/imaging" "github.com/n7olkachev/imgdiff/pkg/imgdiff" ) diff --git a/jsonpath/jsonpath.go b/jsonpath/jsonpath.go index cafc152..9c2a6d8 100644 --- a/jsonpath/jsonpath.go +++ b/jsonpath/jsonpath.go @@ -7,8 +7,8 @@ import ( "reflect" regex "regexp" - httputil "github.com/go-spectest/spectest/jsonpath/http" - "github.com/go-spectest/spectest/jsonpath/jsonpath" + httputil "github.com/nao1215/spectest/jsonpath/http" + "github.com/nao1215/spectest/jsonpath/jsonpath" ) // Contains is a convenience function to assert that a jsonpath expression extracts a value in an array diff --git a/jsonpath/jsonpath_test.go b/jsonpath/jsonpath_test.go index 3b31f72..0a49cb7 100644 --- a/jsonpath/jsonpath_test.go +++ b/jsonpath/jsonpath_test.go @@ -8,10 +8,10 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" "github.com/stretchr/testify/assert" - "github.com/go-spectest/spectest/jsonpath" + "github.com/nao1215/spectest/jsonpath" ) func TestApiTestContains(t *testing.T) { diff --git a/jsonpath/jwt.go b/jsonpath/jwt.go index 8134fa9..57d658f 100644 --- a/jsonpath/jwt.go +++ b/jsonpath/jwt.go @@ -8,7 +8,7 @@ import ( "net/http" "strings" - "github.com/go-spectest/spectest/jsonpath/jsonpath" + "github.com/nao1215/spectest/jsonpath/jsonpath" ) const ( diff --git a/jsonpath/jwt_test.go b/jsonpath/jwt_test.go index 5813857..5a5256b 100644 --- a/jsonpath/jwt_test.go +++ b/jsonpath/jwt_test.go @@ -4,9 +4,9 @@ import ( "net/http" "testing" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" - "github.com/go-spectest/spectest/jsonpath" + "github.com/nao1215/spectest/jsonpath" ) const jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" diff --git a/jsonpath/mocks/mocks.go b/jsonpath/mocks/mocks.go index 0996d59..ce20127 100644 --- a/jsonpath/mocks/mocks.go +++ b/jsonpath/mocks/mocks.go @@ -4,9 +4,9 @@ package mocks import ( "net/http" - "github.com/go-spectest/spectest" - httputil "github.com/go-spectest/spectest/jsonpath/http" - "github.com/go-spectest/spectest/jsonpath/jsonpath" + "github.com/nao1215/spectest" + httputil "github.com/nao1215/spectest/jsonpath/http" + "github.com/nao1215/spectest/jsonpath/jsonpath" ) // Contains is a convenience function to assert that a jsonpath expression extracts a value in an array diff --git a/jsonpath/mocks/mocks_test.go b/jsonpath/mocks/mocks_test.go index 73bfdc7..983633b 100644 --- a/jsonpath/mocks/mocks_test.go +++ b/jsonpath/mocks/mocks_test.go @@ -8,9 +8,9 @@ import ( "strings" "testing" - "github.com/go-spectest/spectest/jsonpath/mocks" + "github.com/nao1215/spectest/jsonpath/mocks" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" ) func TestMocks(t *testing.T) { diff --git a/jsonschema/jsonschema.go b/jsonschema/jsonschema.go index b2dca3c..0ef6ee6 100644 --- a/jsonschema/jsonschema.go +++ b/jsonschema/jsonschema.go @@ -6,7 +6,7 @@ import ( "io" "net/http" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" "github.com/xeipuuv/gojsonschema" ) diff --git a/jsonschema/jsonschema_test.go b/jsonschema/jsonschema_test.go index b600853..faa5560 100644 --- a/jsonschema/jsonschema_test.go +++ b/jsonschema/jsonschema_test.go @@ -5,9 +5,9 @@ import ( "strings" "testing" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/jsonschema" - "github.com/go-spectest/spectest/mocks" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/jsonschema" + "github.com/nao1215/spectest/mocks" ) const schema = `{ diff --git a/mocks.go b/mocks.go index b2a37e6..4dca4bc 100644 --- a/mocks.go +++ b/mocks.go @@ -18,7 +18,7 @@ import ( "time" "github.com/davecgh/go-spew/spew" - difflib "github.com/go-spectest/diff" + difflib "github.com/nao1215/diff" ) // Transport wraps components used to observe and manipulate the real request and response objects diff --git a/mocks/verifier.go b/mocks/verifier.go index bd6a0ab..fe4d561 100644 --- a/mocks/verifier.go +++ b/mocks/verifier.go @@ -1,7 +1,7 @@ package mocks import ( - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" ) var _ spectest.Verifier = &MockVerifier{} diff --git a/plantuml/plantuml.go b/plantuml/plantuml.go index 78a59c9..88aa972 100644 --- a/plantuml/plantuml.go +++ b/plantuml/plantuml.go @@ -10,7 +10,7 @@ import ( "strconv" "strings" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" ) const requestOperation = "->" diff --git a/plantuml/plantuml_test.go b/plantuml/plantuml_test.go index 3939922..8370bcf 100644 --- a/plantuml/plantuml_test.go +++ b/plantuml/plantuml_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" ) func TestWritesTheMeta(t *testing.T) { diff --git a/spectest_test.go b/spectest_test.go index d4c6148..06c94b9 100644 --- a/spectest_test.go +++ b/spectest_test.go @@ -19,8 +19,8 @@ import ( "testing" "time" - "github.com/go-spectest/spectest" - "github.com/go-spectest/spectest/mocks" + "github.com/nao1215/spectest" + "github.com/nao1215/spectest/mocks" "github.com/google/go-cmp/cmp" "github.com/nao1215/gorky/file" ) diff --git a/time_test.go b/time_test.go index 3e1b277..079617a 100644 --- a/time_test.go +++ b/time_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" "github.com/tenntenn/testtime" ) diff --git a/x/db/db.go b/x/db/db.go index c7a2f2d..aa304ab 100644 --- a/x/db/db.go +++ b/x/db/db.go @@ -11,7 +11,7 @@ import ( "io" "time" - "github.com/go-spectest/spectest" + "github.com/nao1215/spectest" ) // WrapWithRecorder wraps an existing driver with a Recorder