diff options
| author | mo khan <mo@mokhan.ca> | 2024-05-18 12:13:45 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-05-18 12:13:45 -0600 |
| commit | 41fe3a65860c6d9572e4dde4682d8233a3bd3ba3 (patch) | |
| tree | de36e942848a5b21a8254d360fad43636602036a /pkg/gitlab | |
| parent | cf1abd6a058af31659fe8692ae771d0f5d63626b (diff) | |
test: start to add unit tests
Diffstat (limited to 'pkg/gitlab')
| -rw-r--r-- | pkg/gitlab/issue.go | 9 | ||||
| -rw-r--r-- | pkg/gitlab/issue_test.go | 15 |
2 files changed, 24 insertions, 0 deletions
diff --git a/pkg/gitlab/issue.go b/pkg/gitlab/issue.go new file mode 100644 index 0000000..720a78b --- /dev/null +++ b/pkg/gitlab/issue.go @@ -0,0 +1,9 @@ +package gitlab + +type Issue struct { + ID int `json:"id"` + IID int `json:"iid"` + ProjectID int `json:"project_id"` + Title string `json:"title"` + Description string `json:"description"` +} diff --git a/pkg/gitlab/issue_test.go b/pkg/gitlab/issue_test.go new file mode 100644 index 0000000..fd1feeb --- /dev/null +++ b/pkg/gitlab/issue_test.go @@ -0,0 +1,15 @@ +package gitlab + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestIssue(t *testing.T) { + t.Run("ParseIssues", func(t *testing.T) { + t.Run("parses the array of issues from IO", func(t *testing.T) { + assert.Equal(t, false, true) + }) + }) +} |
