aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/iterator_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/github/iterator_test.go')
-rw-r--r--bridge/github/iterator_test.go48
1 files changed, 0 insertions, 48 deletions
diff --git a/bridge/github/iterator_test.go b/bridge/github/iterator_test.go
deleted file mode 100644
index c5fad349..00000000
--- a/bridge/github/iterator_test.go
+++ /dev/null
@@ -1,48 +0,0 @@
-package github
-
-import (
- "fmt"
- "os"
- "testing"
- "time"
-)
-
-func Test_Iterator(t *testing.T) {
- token := os.Getenv("GITHUB_TOKEN")
- user := os.Getenv("GITHUB_USER")
- project := os.Getenv("GITHUB_PROJECT")
-
- i := newIterator(map[string]string{
- keyToken: token,
- "user": user,
- "project": project,
- }, time.Time{})
- //time.Now().Add(-14*24*time.Hour))
-
- for i.NextIssue() {
- v := i.IssueValue()
- fmt.Printf(" issue = id:%v title:%v\n", v.Id, v.Title)
-
- for i.NextIssueEdit() {
- v := i.IssueEditValue()
- fmt.Printf("issue edit = %v\n", string(*v.Diff))
- }
-
- for i.NextTimeline() {
- v := i.TimelineValue()
- fmt.Printf("timeline = type:%v\n", v.Typename)
-
- if v.Typename == "IssueComment" {
- for i.NextCommentEdit() {
-
- _ = i.CommentEditValue()
-
- fmt.Printf("comment edit\n")
- }
- }
- }
- }
-
- fmt.Println(i.Error())
- fmt.Println(i.Count())
-}