go: add func newValues()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ab850f6c2c
commit
520c903a14
@ -25,3 +25,8 @@ func DoStochasticHillClimbing(wg *sync.WaitGroup) {
|
||||
|
||||
printSHC("starting...")
|
||||
}
|
||||
|
||||
func newValues() *Values {
|
||||
var v Values
|
||||
return &v
|
||||
}
|
||||
|
@ -25,3 +25,9 @@ func TestDoSHCExec(t *testing.T) {
|
||||
|
||||
wg.Wait()
|
||||
}
|
||||
|
||||
func TestNewValues(t *testing.T) {
|
||||
if v := newValues(); v == nil {
|
||||
t.Error("failed to get values from newValues()")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user