You can navigate from a test to a type or a function by pressing &shortcut:GotoTest; or select Navigate | Test Subject). The same action can be used to generate new tests for a function, file or package.

Go to test and back

GoLand tips, #2083