Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit bc3d61c

Browse files
committed
use enum type for setting vars of regression
1 parent ce07599 commit bc3d61c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkg/testsuite/workscore_regression_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ func Test_Regression(t *testing.T) {
3737
t.Skip("This test is only intended to be run locally to determine new WorkScoreParameters")
3838
r := new(regression.Regression)
3939
r.SetObserved("ns/op")
40-
r.SetVar(0, "Input")
41-
r.SetVar(1, "ContextInput")
42-
r.SetVar(2, "Output")
43-
r.SetVar(3, "NativeToken")
44-
r.SetVar(4, "Staking")
45-
r.SetVar(5, "BlockIssuer")
46-
r.SetVar(6, "Allotment")
47-
r.SetVar(7, "SignatureEd25519")
40+
r.SetVar(regressorInput, "Input")
41+
r.SetVar(regressorContextInput, "ContextInput")
42+
r.SetVar(regressorOutput, "Output")
43+
r.SetVar(regressorNativeToken, "NativeToken")
44+
r.SetVar(regressorStaking, "Staking")
45+
r.SetVar(regressorBlockIssuer, "BlockIssuer")
46+
r.SetVar(regressorAllotment, "Allotment")
47+
r.SetVar(regressorSignatureEd25519, "SignatureEd25519")
4848

4949
r.Train(
5050
// one basic output as input, one basic output

0 commit comments

Comments
 (0)