Hi All!
I have several tests in web project
All of them beginning with creating body for request
For example
body, _ := json.Marshal(map[string]interface{}{
"someA": "stringOne",
"someB": map[0].value
"someC": "stringThree",
})
Each test has unique body
But i can create func wich return me unique body for request
Which operations would being lighter/cheaper in this case?
- Without changes - create body in each test case
- Using function
Thaks!