Page MenuHomePhabricator

endpoint_test.go
No OneTemporary

endpoint_test.go

package endpoint
import (
"testing"
"fmt"
)
//function
func TestEndPointString(t *testing.T) {
var testend Endpoint
testend.Host = "localhost"
testend.Port = 5555
// make a string and test what the string should be
stringWant := "localhost:5555"
returnedString := testend.String()
fmt.Printf("stringWant: %s\n", stringWant)
fmt.Printf("returnedString : %s\n", returnedString)
// return string == stringwant // success
}

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 24, 1:59 PM (22 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15204
Default Alt Text
endpoint_test.go (448 B)

Event Timeline