github.com/hairyhenderson/templater@v3.5.0+incompatible/funcs/net_test.go (about)

     1  package funcs
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestNetLookupIP(t *testing.T) {
    10  	n := &NetFuncs{}
    11  	assert.Equal(t, "127.0.0.1", must(n.LookupIP("localhost")))
    12  }