github.com/kotalco/kotal@v0.3.0/controllers/shared/host_test.go (about)

     1  package shared
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestHost(t *testing.T) {
     8  	expected := "127.0.0.1"
     9  	got := Host(false)
    10  
    11  	if got != expected {
    12  		t.Errorf("expected host to be %s but got %s", expected, got)
    13  	}
    14  }