Go is telling you what is wrong in that message. You have a file `C:\Users\Gini Joseph\GoWorkspace\pkg\mod\github.com \stretchr\[email protected]\mock\mock_test.go` which does not have the expected "package" line at the top of the file, because the file is empty (EOF = end of file).
So, as a first step, look in that directory and see what's going around. You might have some corruption in there. It might be easiest to delete your module cache and try again (`go clean -modcache`) On Mon, Mar 25, 2019 at 8:40 AM Merry <[email protected]> wrote: > When i am running the unit test which was working before stopped working > and i am getting the following error > > > # github.com/emisgroup/auth/lambda/user_service/add_role > package github.com/emisgroup/auth/lambda/user_service/add_role (test) > imports github.com/emisgroup/auth/library/datastore/datastoremocks > imports github.com/stretchr/testify/mock: > C:\Users\Gini Joseph\GoWorkspace\pkg\mod\github.com > \stretchr\[email protected]\mock\mock_test.go:1:1: expected 'package', found > 'EOF' > FAIL github.com/emisgroup/auth/lambda/user_service/add_role [setup > failed] > Error: Tests failed. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
