go: add func newValues()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-06-19 19:44:18 +02:00
parent ab850f6c2c
commit 520c903a14
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 11 additions and 0 deletions

@ -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()")
}
}