| 1 | package slackscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/ |
| 2 | |
| 3 | import ( |
| 4 | "bytesscip-go gomod github.com/golang/go/src go1.16 bytes/" |
| 5 | "logscip-go gomod github.com/golang/go/src go1.16 log/" |
| 6 | "testingscip-go gomod github.com/golang/go/src go1.16 testing/" |
| 7 | |
| 8 | "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.2.2 `github.com/stretchr/testify/assert`/" |
| 9 | ) |
| 10 | |
| 11 | func TestLoggingscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/TestLogging().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 12 | buf := bytesscip-go gomod github.com/golang/go/src go1.16 bytes/.NewBufferStringscip-go gomod github.com/golang/go/src go1.16 bytes/NewBufferString().("") |
| 13 | logger := internalLogscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/internalLog#{loggerscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/internalLog#logger.: logscip-go gomod github.com/golang/go/src go1.16 log/.Newscip-go gomod github.com/golang/go/src go1.16 log/New().(buf, "", 0|logscip-go gomod github.com/golang/go/src go1.16 log/.Lshortfilescip-go gomod github.com/golang/go/src go1.16 log/Lshortfile.)} |
| 14 | logger.Printlnscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/internalLog#Println().("test line 123") |
| 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, buf.Stringscip-go gomod github.com/golang/go/src go1.16 bytes/Buffer#String().(), "logger_test.go:14: test line 123\n") |
| 16 | buf.Truncatescip-go gomod github.com/golang/go/src go1.16 bytes/Buffer#Truncate().(0) |
| 17 | logger.Printscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/internalLog#Print().("test line 123") |
| 18 | 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, buf.Stringscip-go gomod github.com/golang/go/src go1.16 bytes/Buffer#String().(), "logger_test.go:17: test line 123\n") |
| 19 | buf.Truncatescip-go gomod github.com/golang/go/src go1.16 bytes/Buffer#Truncate().(0) |
| 20 | logger.Printfscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/internalLog#Printf().("test line 123\n") |
| 21 | 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, buf.Stringscip-go gomod github.com/golang/go/src go1.16 bytes/Buffer#String().(), "logger_test.go:20: test line 123\n") |
| 22 | buf.Truncatescip-go gomod github.com/golang/go/src go1.16 bytes/Buffer#Truncate().(0) |
| 23 | logger.Outputscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack`/logger#Output.(1, "test line 123\n") |
| 24 | 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, buf.Stringscip-go gomod github.com/golang/go/src go1.16 bytes/Buffer#String().(), "logger_test.go:23: test line 123\n") |
| 25 | buf.Truncatescip-go gomod github.com/golang/go/src go1.16 bytes/Buffer#Truncate().(0) |
| 26 | } |