| 1 | package corescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/ |
| 2 | |
| 3 | import ( |
| 4 | "regexpscip-go gomod github.com/golang/go/src go1.16 regexp/" |
| 5 | "testingscip-go gomod github.com/golang/go/src go1.16 testing/" |
| 6 | ) |
| 7 | |
| 8 | func TestBannerNamescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/TestBannerName().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 9 | if Namescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Name. != "bettercap" { |
| 10 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("expected '%s', got '%s'", "bettercap", Namescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Name.) |
| 11 | } |
| 12 | } |
| 13 | func TestBannerWebsitescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/TestBannerWebsite().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 14 | if Websitescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Website. != "https://bettercap.org/" { |
| 15 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("expected '%s', got '%s'", "https://bettercap.org/", Websitescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Website.) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func TestBannerVersionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/TestBannerVersion().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 20 | match, err := regexpscip-go gomod github.com/golang/go/src go1.16 regexp/.MatchStringscip-go gomod github.com/golang/go/src go1.16 regexp/MatchString().(`\d+.\d+`, Versionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Version.) |
| 21 | if err != nil { |
| 22 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("unable to perform regex on Version constant") |
| 23 | } |
| 24 | if !match { |
| 25 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("expected Version constant in format '%s', got '%s'", "X.X", Versionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Version.) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | func TestBannerAuthorscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/TestBannerAuthor().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 30 | if Authorscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Author. != "Simone 'evilsocket' Margaritelli" { |
| 31 | t.Fatalfscip-go gomod github.com/golang/go/src go1.16 testing/common#Fatalf().("expected '%s', got '%s'", "Simone 'evilsocket' Margaritelli", Authorscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/core`/Author.) |
| 32 | } |
| 33 | } |