Закинул общий репозиторий

This commit is contained in:
Vladislav Karmishkin
2022-04-13 20:45:14 +03:00
parent 40566525c1
commit 96be2f59a7
14 changed files with 418 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
package delivery
type Delivery interface {
GetTcpNetwork() string
}
type Http struct {
}
func (http Http) GetTcpNetwork() string {
return "tcp"
}
+10
View File
@@ -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())
}