I have a problem firing a function declared as variable in golang with testify.
Test and function both declared in same package.
var testableFunction = func(abc string) string {...}
now i have a different file with unit test calling testableFunction
func TestFunction(t *testing.T){
...
res:=testableFunction("abc")
...
}
Calling TestFunction with go test
does not fire any exception, but testableFunction is actually never run. Why?