In your test file, you don’t need to use “file_test” package.
Ridho perdana
1

If I understand you correctly, yes actually it doesn’t need to have same pattern between the source and test files, like it is not rigid to be {name}.go and {name}_test.go

As long as it is under the same package, the test file would find the respective function. It is just a convention to make the code cleaner.

Thanks for stopping by!