t.Helper undefined (type *testing.T has no field or method Helper)
t.Run undefined (type *testing.T has no field or method Run)
t.Run undefined (type *testing.T has no field or method Run)
I am thinking it may have to do with my setup of Go in VSCode. I succesfully ran a short test in the beginning modules but not running into errors when accessing ‘t’ methods.
I ran your code in the local Linux system. It’s working fine. Yes, it should be related to VS Code settings. Is the VS configured properly to access GOROOT’s contents?
In case you need, I append a VS guide here (Go with Visual Studio Code). That’s as far as I can go due to not having any Windows machine around me.
I looked into my /src/testing.go and realized I was missing the Helper function and the Run function.
hmmm…then I realized the instructions I followed to download Go on Linux was for an older version. I have uninstalled that version and now am running 1.13.3. with the correct functions needed.
You’re welcome. Would you mind mark the appropriate post as “marked as solved” please? This is to indicate others that the case is solved and they can work on other questions.