type closure … func (c closure) Import(path string) (*types.Package, error) { … } func TestDependencies(t *testing.T) { … }