| 1 | package slackscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.16 testing/" |
| 5 | |
| 6 | "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/" |
| 7 | ) |
| 8 | |
| 9 | func TestNewTextInputscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewTextInput().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 10 | name := "internalName" |
| 11 | label := "Human Readable" |
| 12 | value := "Pre filled text" |
| 13 | textInput := NewTextInputscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewTextInput().(name, label, value) |
| 14 | assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, InputTypeTextscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputTypeText., textInput.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/DialogInput#Type.) |
| 15 | assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, name, textInput.Namescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/DialogInput#Name.) |
| 16 | assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, label, textInput.Labelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/DialogInput#Label.) |
| 17 | assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, value, textInput.Valuescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TextInputElement#Value.) |
| 18 | } |
| 19 | |
| 20 | func TestNewTextAreaInputscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestNewTextAreaInput().(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 | name := "internalName" |
| 22 | label := "Human Readable" |
| 23 | value := "Pre filled text" |
| 24 | textInput := NewTextAreaInputscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/NewTextAreaInput().(name, label, value) |
| 25 | assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, InputTypeTextAreascip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/InputTypeTextArea., textInput.Typescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/DialogInput#Type.) |
| 26 | assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, name, textInput.Namescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/DialogInput#Name.) |
| 27 | assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, label, textInput.Labelscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/DialogInput#Label.) |
| 28 | assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/Equal().(t, value, textInput.Valuescip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TextInputElement#Value.) |
| 29 | } |