vendor: add qingstor-sdk-go for QingStor
This commit is contained in:
parent
f682002b84
commit
466dd22b44
136 changed files with 15952 additions and 1 deletions
16
vendor/github.com/pengsrc/go-shared/check/host_test.go
generated
vendored
Normal file
16
vendor/github.com/pengsrc/go-shared/check/host_test.go
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
package check
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestCheckHostAndPort(t *testing.T) {
|
||||
assert.False(t, HostAndPort("127.0.0.1:80:90"))
|
||||
assert.False(t, HostAndPort("127.0.0.1"))
|
||||
assert.False(t, HostAndPort("mysql"))
|
||||
assert.False(t, HostAndPort("mysql:mysql"))
|
||||
assert.True(t, HostAndPort("mysql:3306"))
|
||||
assert.True(t, HostAndPort("172.16.70.50:6379"))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue