[VOL-5374] Upgrade go version to v1.23
Change-Id: I0d051ebfee3e4117e4f6d83f512c7ee791fd1d19
Signed-off-by: Akash Reddy Kankanala <akash.kankanala@radisys.com>
diff --git a/pkg/platform/platform_test.go b/pkg/platform/platform_test.go
index 4b76497..960c6f3 100644
--- a/pkg/platform/platform_test.go
+++ b/pkg/platform/platform_test.go
@@ -19,14 +19,15 @@
import (
"context"
+ "math"
+ "reflect"
+ "testing"
+
fu "github.com/opencord/voltha-lib-go/v7/pkg/flows"
ofp "github.com/opencord/voltha-protos/v5/go/openflow_13"
"github.com/opencord/voltha-protos/v5/go/voltha"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
- "math"
- "reflect"
- "testing"
)
func TestMkUniPortNum(t *testing.T) {
@@ -91,7 +92,9 @@
want uint32
}{
// TODO: Add test cases.
+ //nolint:staticcheck
{"IntfIDFromUniPortNum-1", args{portNum: 8096}, ((8096 / 65536) & 255)},
+ //nolint:staticcheck
{"IntfIDFromUniPortNum-2", args{portNum: 1024}, ((1024 / 65536) & 255)},
{"IntfIDFromUniPortNum-3", args{portNum: 66560}, ((66560 / 65536) & 255)},
{"IntfIDFromUniPortNum-4", args{portNum: 16712193}, ((16712193 / 65536) & 255)},