| 1 | package slackscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ |
| 2 | |
| 3 | import "testingscip-go gomod github.com/golang/go/src go1.16 testing/" |
| 4 | |
| 5 | func TestNewMessageItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewMessageItem().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 6 | c := "C1" |
| 7 | m := &Messagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Message#{} |
| 8 | mi := NewMessageItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewMessageItem().(c, m) |
| 9 | if mi.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type. != TYPE_MESSAGEscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_MESSAGE. { |
| 10 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("want Type %s, got %s", mi.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type., TYPE_MESSAGEscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_MESSAGE.) |
| 11 | } |
| 12 | if mi.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Channel. != c { |
| 13 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Channel %s, want %s", mi.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Channel., c) |
| 14 | } |
| 15 | if mi.Messagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Message. != m { |
| 16 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Message %v, want %v", mi.Messagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Message., m) |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | func TestNewFileItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewFileItem().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 21 | f := &Filescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/File#{} |
| 22 | fi := NewFileItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewFileItem().(f) |
| 23 | if fi.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type. != TYPE_FILEscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_FILE. { |
| 24 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Type %s, want %s", fi.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type., TYPE_FILEscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_FILE.) |
| 25 | } |
| 26 | if fi.Filescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#File. != f { |
| 27 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got File %v, want %v", fi.Filescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#File., f) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | func TestNewFileCommentItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewFileCommentItem().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 32 | f := &Filescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/File#{} |
| 33 | c := &Commentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Comment#{} |
| 34 | fci := NewFileCommentItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewFileCommentItem().(f, c) |
| 35 | if fci.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type. != TYPE_FILE_COMMENTscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_FILE_COMMENT. { |
| 36 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Type %s, want %s", fci.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type., TYPE_FILE_COMMENTscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_FILE_COMMENT.) |
| 37 | } |
| 38 | if fci.Filescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#File. != f { |
| 39 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got File %v, want %v", fci.Filescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#File., f) |
| 40 | } |
| 41 | if fci.Commentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Comment. != c { |
| 42 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Comment %v, want %v", fci.Commentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Comment., c) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func TestNewChannelItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewChannelItem().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 47 | c := "C1" |
| 48 | ci := NewChannelItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewChannelItem().(c) |
| 49 | if ci.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type. != TYPE_CHANNELscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_CHANNEL. { |
| 50 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Type %s, want %s", ci.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type., TYPE_CHANNELscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_CHANNEL.) |
| 51 | } |
| 52 | if ci.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Channel. != "C1" { |
| 53 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Channel %v, want %v", ci.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Channel., "C1") |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | func TestNewIMItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewIMItem().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 58 | c := "D1" |
| 59 | ci := NewIMItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewIMItem().(c) |
| 60 | if ci.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type. != TYPE_IMscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_IM. { |
| 61 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Type %s, want %s", ci.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type., TYPE_IMscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_IM.) |
| 62 | } |
| 63 | if ci.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Channel. != "D1" { |
| 64 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Channel %v, want %v", ci.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Channel., "D1") |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | func TestNewGroupItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewGroupItem().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 69 | c := "G1" |
| 70 | ci := NewGroupItemscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewGroupItem().(c) |
| 71 | if ci.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type. != TYPE_GROUPscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_GROUP. { |
| 72 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Type %s, want %s", ci.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Type., TYPE_GROUPscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TYPE_GROUP.) |
| 73 | } |
| 74 | if ci.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Channel. != "G1" { |
| 75 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("got Channel %v, want %v", ci.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/Item#Channel., "G1") |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | func TestNewRefToMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewRefToMessage().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 80 | ref := NewRefToMessagescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewRefToMessage().("chan", "ts") |
| 81 | if got, want := ref.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#Channel., "chan"; got != want { |
| 82 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Channel got %s, want %s", got, want) |
| 83 | } |
| 84 | if got, want := ref.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#Timestamp., "ts"; got != want { |
| 85 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Timestamp got %s, want %s", got, want) |
| 86 | } |
| 87 | if got, want := ref.Filescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#File., ""; got != want { |
| 88 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("File got %s, want %s", got, want) |
| 89 | } |
| 90 | if got, want := ref.Commentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#Comment., ""; got != want { |
| 91 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Comment got %s, want %s", got, want) |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | func TestNewRefToFilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewRefToFile().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 96 | ref := NewRefToFilescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewRefToFile().("file") |
| 97 | if got, want := ref.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#Channel., ""; got != want { |
| 98 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Channel got %s, want %s", got, want) |
| 99 | } |
| 100 | if got, want := ref.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#Timestamp., ""; got != want { |
| 101 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Timestamp got %s, want %s", got, want) |
| 102 | } |
| 103 | if got, want := ref.Filescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#File., "file"; got != want { |
| 104 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("File got %s, want %s", got, want) |
| 105 | } |
| 106 | if got, want := ref.Commentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#Comment., ""; got != want { |
| 107 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Comment got %s, want %s", got, want) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func TestNewRefToCommentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewRefToComment().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 112 | ref := NewRefToCommentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewRefToComment().("file_comment") |
| 113 | if got, want := ref.Channelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#Channel., ""; got != want { |
| 114 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Channel got %s, want %s", got, want) |
| 115 | } |
| 116 | if got, want := ref.Timestampscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#Timestamp., ""; got != want { |
| 117 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Timestamp got %s, want %s", got, want) |
| 118 | } |
| 119 | if got, want := ref.Filescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#File., ""; got != want { |
| 120 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("File got %s, want %s", got, want) |
| 121 | } |
| 122 | if got, want := ref.Commentscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ItemRef#Comment., "file_comment"; got != want { |
| 123 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Comment got %s, want %s", got, want) |
| 124 | } |
| 125 | } |