MCPcopy Create free account
hub / github.com/Pallinder/go-randomdata / TestLastName

Function TestLastName

random_data_test.go:95–102  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

93}
94
95func TestLastName(t *testing.T) {
96 t.Log("TestLastName")
97 lastName := LastName()
98
99 if !findInSlice(jsonData.LastNames, lastName) {
100 t.Error("lastName empty or not in slice")
101 }
102}
103
104func TestFullName(t *testing.T) {
105 t.Log("TestFullName")

Callers

nothing calls this directly

Calls 2

LastNameFunction · 0.85
findInSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…