github.com/kumasuke120/mockuma@v1.1.9/internal/server/policy_test.go (about)

     1  package server
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/kumasuke120/mockuma/internal/mckmaps"
     7  	"github.com/stretchr/testify/assert"
     8  )
     9  
    10  func Test_newForwardPolicy(t *testing.T) {
    11  	//noinspection GoImportUsedAsName
    12  	assert := assert.New(t)
    13  
    14  	p := newForwardPolicy("/path")
    15  	assert.Equal("/path", p.Forwards.Path)
    16  	assert.Equal(mckmaps.CmdTypeForwards, p.CmdType)
    17  }