Закинул общий репозиторий
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package delivery
|
||||
|
||||
type Delivery interface {
|
||||
GetTcpNetwork() string
|
||||
}
|
||||
|
||||
type Http struct {
|
||||
}
|
||||
|
||||
func (http Http) GetTcpNetwork() string {
|
||||
return "tcp"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package delivery
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestHttp_GetNetwork(t *testing.T) {
|
||||
assert.Equal(t, "tcp", Http{}.GetTcpNetwork())
|
||||
}
|
||||
Reference in New Issue
Block a user