This question already has an answer here:
I want to reuse a function from a _test.go file inside another one.
I have tried importing the package and accessing the function from there, But it was not possible to use the function.
My project structure is like that:
├── a.go
├── a_test.go # package a
├──b.go
├──b_test.go # package b
I am trying to use a function from b_test.go inside a_test.go file. Isn't it possible to import a function from test files in fo? If it's passible how can I do it?
Aucun commentaire:
Enregistrer un commentaire