Skip to content

Commit

Permalink
adding tests for new functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire.Nicholas authored and Claire.Nicholas committed Nov 22, 2023
1 parent d6a7f68 commit d4a89a0
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 18 deletions.
4 changes: 2 additions & 2 deletions cmd/vela-slack/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"os"
"regexp"
"strconv"
Expand Down Expand Up @@ -215,7 +215,7 @@ func getAttachmentFromFile(p *Plugin) ([]slack.Attachment, error) {
defer jsonFile.Close()

// read the contents of the json template
bytes, err := ioutil.ReadAll(jsonFile)
bytes, err := io.ReadAll(jsonFile)
if err != nil {
return nil, fmt.Errorf("unable to read json file: %w", err)
}
Expand Down
149 changes: 149 additions & 0 deletions cmd/vela-slack/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"net/http"
"net/http/httptest"
"os"
"testing"

"github.com/slack-go/slack"
Expand All @@ -20,6 +21,7 @@ func TestSlack_Plugin_Validate(t *testing.T) {
WebhookMsg: &slack.WebhookMessage{
Text: "hello",
},
Remote: false,
}

err := p.Validate()
Expand All @@ -35,6 +37,7 @@ func TestSlack_Plugin_Validate_Missing_Webhook(t *testing.T) {
Env: &Env{},
Path: "",
WebhookMsg: &slack.WebhookMessage{},
Remote: false,
}

err := p.Validate()
Expand All @@ -50,6 +53,7 @@ func TestSlack_Plugin_Validate_Missing_Text_And_Path(t *testing.T) {
Env: &Env{},
Path: "",
WebhookMsg: &slack.WebhookMessage{},
Remote: false,
}

err := p.Validate()
Expand All @@ -72,6 +76,7 @@ func TestSlack_Plugin_Exec(t *testing.T) {
WebhookMsg: &slack.WebhookMessage{
Text: "hello",
},
Remote: false,
}

err := p.Exec()
Expand All @@ -94,6 +99,41 @@ func TestSlack_Plugin_Exec_Attachment(t *testing.T) {
WebhookMsg: &slack.WebhookMessage{
Text: "hello",
},
Remote: false,
}

err := p.Exec()
if err != nil {
t.Errorf("Exec returned err: %v", err)
}
}

func TestSlack_Plugin_Exec_Remote_Attachment(t *testing.T) {
// setup types
ta := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
bytes, err := os.ReadFile("./testdata/slack_attachment_remote.json")
if err != nil {
t.Errorf("ReadFile error: %v", err)
}
w.Write(bytes)

Check failure on line 119 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / full-review

Error return value of `w.Write` is not checked (errcheck)

Check failure on line 119 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / diff-review

Error return value of `w.Write` is not checked (errcheck)

Check failure on line 119 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / diff-review

Error return value of `w.Write` is not checked (errcheck)

Check failure on line 119 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-slack/plugin_test.go#L119

Error return value of `w.Write` is not checked (errcheck)
Raw output
cmd/vela-slack/plugin_test.go:119:10: Error return value of `w.Write` is not checked (errcheck)
		w.Write(bytes)
		       ^
w.WriteHeader(http.StatusOK)
}))
defer ta.Close()

ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "ok")
}))
defer ts.Close()

p := &Plugin{
Webhook: ts.URL,
Env: &Env{
RegistryURL: ta.URL,
},
Path: "github.com/go-vela/vela-slack/cmd/vela-slack/testdata/slack_attachment.json",
WebhookMsg: &slack.WebhookMessage{},
Remote: true,
}

err := p.Exec()
Expand All @@ -114,6 +154,109 @@ func TestSlack_Plugin_Exec_Bad_Attachment(t *testing.T) {
Env: &Env{},
Path: "testdata/slack_attachment_bad.json",
WebhookMsg: &slack.WebhookMessage{},
Remote: false,
}

err := p.Exec()
if err == nil {
t.Error("Exec should return err due to invalid JSON file")
}
}

func TestSlack_Plugin_Exec_Bad_Remote_Attachment_Parse(t *testing.T) {
// setup types
ta := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
bytes, err := os.ReadFile("./testdata/slack_attachment_bad.json")
if err != nil {
t.Errorf("ReadFile error: %v", err)
}
w.Write(bytes)

Check failure on line 174 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / full-review

Error return value of `w.Write` is not checked (errcheck)

Check failure on line 174 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / diff-review

Error return value of `w.Write` is not checked (errcheck)

Check failure on line 174 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / diff-review

Error return value of `w.Write` is not checked (errcheck)

Check failure on line 174 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-slack/plugin_test.go#L174

Error return value of `w.Write` is not checked (errcheck)
Raw output
cmd/vela-slack/plugin_test.go:174:10: Error return value of `w.Write` is not checked (errcheck)
		w.Write(bytes)
		       ^
w.WriteHeader(http.StatusOK)
}))
defer ta.Close()

ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "ok")
}))
defer ts.Close()

p := &Plugin{
Webhook: ts.URL,
Env: &Env{
RegistryURL: ta.URL,
},
Path: "testdata/slack_attachment_bad.json",
WebhookMsg: &slack.WebhookMessage{},
Remote: true,
}

err := p.Exec()
if err == nil {
t.Error("Exec should return err due to invalid slack attachment")
}
}

func TestSlack_Plugin_Exec_Bad_Remote_Attachment(t *testing.T) {
// setup types
ta := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
bytes, err := os.ReadFile("./testdata/slack_attachment_bad.json")
if err != nil {
t.Errorf("ReadFile error: %v", err)
}
w.Write(bytes)

Check failure on line 208 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / full-review

Error return value of `w.Write` is not checked (errcheck)

Check failure on line 208 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / diff-review

Error return value of `w.Write` is not checked (errcheck)

Check failure on line 208 in cmd/vela-slack/plugin_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/vela-slack/plugin_test.go#L208

Error return value of `w.Write` is not checked (errcheck)
Raw output
cmd/vela-slack/plugin_test.go:208:10: Error return value of `w.Write` is not checked (errcheck)
		w.Write(bytes)
		       ^
w.WriteHeader(http.StatusOK)
}))
defer ta.Close()

ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "ok")
}))
defer ts.Close()

p := &Plugin{
Webhook: ts.URL,
Env: &Env{
RegistryURL: ta.URL,
},
Path: "github.com/go-vela/vela-slack/cmd/vela-slack/testdata/slack_attachment_bad.json",
WebhookMsg: &slack.WebhookMessage{},
Remote: true,
}

err := p.Exec()
if err == nil {
t.Error("Exec should return err due to invalid JSON file")
}
}

func TestSlack_Plugin_Exec_Bad_Remote_Attachment_Unmarshal(t *testing.T) {
// setup types
ta := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
bytes, err := os.ReadFile("./testdata/slack_attachment_remote_bad.json")
if err != nil {
t.Errorf("ReadFile error: %v", err)
}
w.Write(bytes)
w.WriteHeader(http.StatusOK)
}))
defer ta.Close()

ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "ok")
}))
defer ts.Close()

p := &Plugin{
Webhook: ts.URL,
Env: &Env{
RegistryURL: ta.URL,
},
Path: "github.com/go-vela/vela-slack/cmd/vela-slack/testdata/slack_attachment_remote_bad.json",
WebhookMsg: &slack.WebhookMessage{},
Remote: true,
}

err := p.Exec()
Expand All @@ -134,6 +277,7 @@ func TestSlack_Plugin_Exec_Bad_File_Ref(t *testing.T) {
Env: &Env{},
Path: "testdata/slack_attachment_404.json",
WebhookMsg: &slack.WebhookMessage{},
Remote: false,
}

err := p.Exec()
Expand All @@ -157,6 +301,7 @@ Newlines`,
},
Path: "testdata/slack_attachment.json",
WebhookMsg: &slack.WebhookMessage{},
Remote: false,
}

err := p.Exec()
Expand All @@ -182,6 +327,7 @@ Newlines`,
WebhookMsg: &slack.WebhookMessage{
Text: "Build Message: {{ .BuildMessage }}",
},
Remote: false,
}

err := p.Exec()
Expand All @@ -204,6 +350,7 @@ func TestSlack_Plugin_Exec_Sprig_Text(t *testing.T) {
WebhookMsg: &slack.WebhookMessage{
Text: "{{ .BuildAuthorEmail | lower }}",
},
Remote: false,
}

err := p.Exec()
Expand All @@ -226,6 +373,7 @@ func TestSlack_Plugin_Exec_Remove_Escape_Chara(t *testing.T) {
WebhookMsg: &slack.WebhookMessage{
Text: "{{ trimAll \"@company.com\" .BuildAuthorEmail }}",
},
Remote: false,
}

err := p.Exec()
Expand All @@ -248,6 +396,7 @@ func TestSlack_Plugin_Exec_Do_Not_Remove_Escape_Chara(t *testing.T) {
WebhookMsg: &slack.WebhookMessage{
Text: "{\"hello\": \"world\", \"hello_world\": true, \"urls\": {\"url_one\": \"https://github.com\", \"url_two\": \"https://github.com/octocat\"}}",
},
Remote: false,
}

err := p.Exec()
Expand Down
18 changes: 18 additions & 0 deletions cmd/vela-slack/testdata/slack_attachment_remote.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "file",
"encoding": "base64",
"size": 5362,
"name": "slack_attachment.json",
"path": "slack_attachment.json",
"content": "ewogICAgImF0dGFjaG1lbnRzIjogWwogICAgICAgIHsKICAgICAgICAgICAgImZhbGxiYWNrIjogIlJlcXVpcmVkIHBsYWluLXRleHQgc3VtbWFyeSBvZiB0aGUgYXR0YWNobWVudC4iLAogICAgICAgICAgICAiY29sb3IiOiAiIzM2YTY0ZiIsCiAgICAgICAgICAgICJwcmV0ZXh0IjogIk9wdGlvbmFsIHRleHQgdGhhdCBhcHBlYXJzIGFib3ZlIHRoZSBhdHRhY2htZW50IGJsb2NrIiwKICAgICAgICAgICAgImF1dGhvcl9uYW1lIjogIkJvYmJ5IFRhYmxlcyIsCiAgICAgICAgICAgICJhdXRob3JfbGluayI6ICJodHRwOi8vZmxpY2tyLmNvbS9ib2JieS8iLAogICAgICAgICAgICAiYXV0aG9yX2ljb24iOiAiaHR0cDovL2ZsaWNrci5jb20vaWNvbnMvYm9iYnkuanBnIiwKICAgICAgICAgICAgInRpdGxlIjogIlNsYWNrIEFQSSBEb2N1bWVudGF0aW9uIiwKICAgICAgICAgICAgInRpdGxlX2xpbmsiOiAiaHR0cHM6Ly9hcGkuc2xhY2suY29tLyIsCiAgICAgICAgICAgICJ0ZXh0IjogIkJ1aWxkIE1lc3NhZ2U6IHt7IC5CdWlsZE1lc3NhZ2UgfX0iLAogICAgICAgICAgICAiZmllbGRzIjogWwogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgICJ0aXRsZSI6ICJQcmlvcml0eSIsCiAgICAgICAgICAgICAgICAgICAgInZhbHVlIjogIkhpZ2giLAogICAgICAgICAgICAgICAgICAgICJzaG9ydCI6IGZhbHNlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIF0sCiAgICAgICAgICAgICJpbWFnZV91cmwiOiAiaHR0cDovL215LXdlYnNpdGUuY29tL3BhdGgvdG8vaW1hZ2UuanBnIiwKICAgICAgICAgICAgInRodW1iX3VybCI6ICJodHRwOi8vZXhhbXBsZS5jb20vcGF0aC90by90aHVtYi5wbmciLAogICAgICAgICAgICAiZm9vdGVyIjogIlNsYWNrIEFQSSIsCiAgICAgICAgICAgICJmb290ZXJfaWNvbiI6ICJodHRwczovL3BsYXRmb3JtLnNsYWNrLWVkZ2UuY29tL2ltZy9kZWZhdWx0X2FwcGxpY2F0aW9uX2ljb24ucG5nIiwKICAgICAgICAgICAgInRzIjogInt7IC5CdWlsZENyZWF0ZWQgfX0iCiAgICAgICAgfQogICAgXQp9",
"sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
"url": "https://api.github.com/repos/octokit/octokit.rb/contents/slack_attachment.json",
"git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
"html_url": "https://github.com/octokit/octokit.rb/blob/main/slack_attachment.json",
"download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/main/slack_attachment.json",
"_links": {
"git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
"self": "https://api.github.com/repos/octokit/octokit.rb/contents/slack_attachment.json",
"html": "https://github.com/octokit/octokit.rb/blob/main/slack_attachment.json"
}
}
18 changes: 18 additions & 0 deletions cmd/vela-slack/testdata/slack_attachment_remote_bad.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "file",
"encoding": "base64",
"size": 5362,
"name": "slack_attachment.json",
"path": "slack_attachment.json",
"content": "",
"sha": "3d21ec53a331a6f037a91c368710b99387d012c1",
"url": "https://api.github.com/repos/octokit/octokit.rb/contents/slack_attachment.json",
"git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
"html_url": "https://github.com/octokit/octokit.rb/blob/main/slack_attachment.json",
"download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/main/slack_attachment.json",
"_links": {
"git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1",
"self": "https://api.github.com/repos/octokit/octokit.rb/contents/slack_attachment.json",
"html": "https://github.com/octokit/octokit.rb/blob/main/slack_attachment.json"
}
}
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ require (
)

require (
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/buildkite/yaml v0.0.0-20181016232759-0caa5f0796e3 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/drone/envsubst v1.0.3 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-github/v56 v56.0.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/goware/urlx v0.3.2 // indirect
github.com/stretchr/testify v1.8.3 // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
Expand All @@ -39,8 +38,7 @@ require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/go-asn1-ber/asn1-ber v1.5.4 // indirect
github.com/go-vela/server v0.22.0
github.com/google/go-github/v55 v55.0.0
github.com/go-vela/server v0.22.2
github.com/google/uuid v1.4.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/huandu/xstrings v1.3.3 // indirect
Expand Down
16 changes: 4 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0
github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 h1:wPbRQzjjwFc0ih8puEVAOFGELsn1zoIIYdxvML7mDxA=
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g=
github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI=
github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=
Expand All @@ -17,14 +15,10 @@ github.com/alexbrainman/sspi v0.0.0-20210105120005-909beea2cc74 h1:Kk6a4nehpJ3Uu
github.com/alexbrainman/sspi v0.0.0-20210105120005-909beea2cc74/go.mod h1:cEWa1LVoE5KvSD9ONXsZrj0z6KqySlCCNKHlLzbqAt4=
github.com/buildkite/yaml v0.0.0-20181016232759-0caa5f0796e3 h1:q+sMKdA6L8LyGVudTkpGoC73h6ak2iWSPFiFo/pFOU8=
github.com/buildkite/yaml v0.0.0-20181016232759-0caa5f0796e3/go.mod h1:5hCug3EZaHXU3FdCA3gJm0YTNi+V+ooA2qNTiVpky4A=
github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/bytedance/sonic v1.9.1 h1:6iJ6NqdoxCDr6mbY8h18oSO+cShGSMRGCEo7F2h0x8s=
github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U=
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams=
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk=
github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I=
github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down Expand Up @@ -52,8 +46,8 @@ github.com/go-playground/validator/v10 v10.14.0 h1:vgvQWe3XCz3gIeFDm/HnTIbj6UGmg
github.com/go-playground/validator/v10 v10.14.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU=
github.com/go-test/deep v1.0.4 h1:u2CU3YKy9I2pmu9pX0eq50wCgjfGIt539SqR7FbHiho=
github.com/go-test/deep v1.0.4/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/go-vela/server v0.22.0 h1:zzr7g7sm2Z2mn8hAGlD3wqFHzj8rnQCb4KiCIjTyX1I=
github.com/go-vela/server v0.22.0/go.mod h1:DidWsP+FCWot5ePim0jjvQqhaheOKjSMoVtAfXeNTyU=
github.com/go-vela/server v0.22.2 h1:jDlkQBqi4vxmnJkUVIUTdZeUAEoEVejdd6Mkm25QMrs=
github.com/go-vela/server v0.22.2/go.mod h1:DidWsP+FCWot5ePim0jjvQqhaheOKjSMoVtAfXeNTyU=
github.com/go-vela/types v0.22.0 h1:JmAQ9Hy4HnOgbgNsNz5x1wu3Myv47KoC0rxR9x36OQ4=
github.com/go-vela/types v0.22.0/go.mod h1:ljNY36D6YkpObBbNF7Xslv3oxN4mGuQAwWhnnK/V06I=
github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
Expand All @@ -68,8 +62,6 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
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/go-github/v55 v55.0.0 h1:4pp/1tNMB9X/LuAhs5i0KQAE40NmiR/y6prLNb9x9cg=
github.com/google/go-github/v55 v55.0.0/go.mod h1:JLahOTA1DnXzhxEymmFF5PP2tSS9JVNj68mSZNDwskA=
github.com/google/go-github/v56 v56.0.0 h1:TysL7dMa/r7wsQi44BjqlwaHvwlFlqkK8CtBWCX3gb4=
github.com/google/go-github/v56 v56.0.0/go.mod h1:D8cdcX98YWJvi7TLo7zM4/h8ZTx6u6fwGEkCdisopo0=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
Expand Down Expand Up @@ -130,8 +122,9 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY=
github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU=
Expand Down Expand Up @@ -169,7 +162,6 @@ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down

0 comments on commit d4a89a0

Please sign in to comment.