In Go this sort of thing is pretty common:
func Test_X(<params>) {
mockFunc1 := func(<params>) {
// code goes here, but indent and SmartPaste
// typically line up with declaration of mockFunc1
}
}
In the cases I've been dealing with, mockFunc1 is usually a mock REST API function, but it's not uncommon in Go for other things. But it would be terrific if SmartPaste and other indenting functions worked with it.