Skip to content
Snippets Groups Projects
Commit 1c3f162b authored by Andre Sterba's avatar Andre Sterba Committed by Manuel Kieweg
Browse files

Enable goimports linter

parent 3405158a
No related branches found
No related tags found
9 merge requests!246Develop,!245Develop into Master,!244Master into develop2 into master,!219Draft: Testing,!214Test pipelines,!195DO NOT MERGE 2,!194DO NOT MERGE! just for testing,!153Enable goimports linter,!138Develop
...@@ -2,9 +2,10 @@ package nucleus ...@@ -2,9 +2,10 @@ package nucleus
import ( import (
"context" "context"
"github.com/openconfig/ygot/ytypes"
"reflect" "reflect"
"testing" "testing"
"github.com/openconfig/ygot/ytypes"
) )
func TestRestconf_Get(t *testing.T) { func TestRestconf_Get(t *testing.T) {
......
package nucleus package nucleus
import ( import (
"reflect"
"code.fbi.h-da.de/cocsn/yang-models/generated/openconfig" "code.fbi.h-da.de/cocsn/yang-models/generated/openconfig"
"github.com/google/uuid" "github.com/google/uuid"
gpb "github.com/openconfig/gnmi/proto/gnmi" gpb "github.com/openconfig/gnmi/proto/gnmi"
...@@ -9,7 +11,6 @@ import ( ...@@ -9,7 +11,6 @@ import (
"github.com/openconfig/ygot/ygot" "github.com/openconfig/ygot/ygot"
"github.com/openconfig/ygot/ytypes" "github.com/openconfig/ygot/ytypes"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"reflect"
) )
// SouthboundInterface provides an // SouthboundInterface provides an
......
package nucleus package nucleus
import ( import (
"reflect"
"testing"
"code.fbi.h-da.de/cocsn/gosdn/nucleus/util/path" "code.fbi.h-da.de/cocsn/gosdn/nucleus/util/path"
"code.fbi.h-da.de/cocsn/gosdn/nucleus/util/proto" "code.fbi.h-da.de/cocsn/gosdn/nucleus/util/proto"
"code.fbi.h-da.de/cocsn/yang-models/generated/openconfig" "code.fbi.h-da.de/cocsn/yang-models/generated/openconfig"
"github.com/google/uuid" "github.com/google/uuid"
gpb "github.com/openconfig/gnmi/proto/gnmi" gpb "github.com/openconfig/gnmi/proto/gnmi"
"github.com/openconfig/ygot/ytypes" "github.com/openconfig/ygot/ytypes"
"reflect"
"testing"
) )
func TestOpenConfig_Id(t *testing.T) { func TestOpenConfig_Id(t *testing.T) {
......
package nucleus package nucleus
import ( import (
"reflect"
"sync"
p "code.fbi.h-da.de/cocsn/gosdn/nucleus/pnd" p "code.fbi.h-da.de/cocsn/gosdn/nucleus/pnd"
"github.com/google/uuid" "github.com/google/uuid"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"reflect"
"sync"
) )
var storeLock sync.RWMutex var storeLock sync.RWMutex
......
package nucleus package nucleus
import ( import (
"code.fbi.h-da.de/cocsn/gosdn/mocks"
"github.com/google/uuid"
"reflect" "reflect"
"sort" "sort"
"testing" "testing"
"code.fbi.h-da.de/cocsn/gosdn/mocks"
"github.com/google/uuid"
) )
func Test_store_add(t *testing.T) { func Test_store_add(t *testing.T) {
......
...@@ -3,8 +3,9 @@ package nucleus ...@@ -3,8 +3,9 @@ package nucleus
import ( import (
"bytes" "bytes"
"context" "context"
"github.com/openconfig/ygot/ytypes"
"io" "io"
"github.com/openconfig/ygot/ytypes"
) )
// Operation codes numerous operations used to change the state of remote resources. // Operation codes numerous operations used to change the state of remote resources.
......
package path package path
import ( import (
gpb "github.com/openconfig/gnmi/proto/gnmi"
"strings" "strings"
gpb "github.com/openconfig/gnmi/proto/gnmi"
) )
// ToStrings translates a gNMI path to a slice of strings // ToStrings translates a gNMI path to a slice of strings
......
...@@ -2,10 +2,11 @@ package path ...@@ -2,10 +2,11 @@ package path
import ( import (
"fmt" "fmt"
"strings"
"github.com/openconfig/goyang/pkg/yang" "github.com/openconfig/goyang/pkg/yang"
"github.com/openconfig/ygot/ytypes" "github.com/openconfig/ygot/ytypes"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"strings"
) )
const delim = "/" const delim = "/"
......
package path package path
import ( import (
model "code.fbi.h-da.de/cocsn/gosdn/test/yang"
"github.com/openconfig/goyang/pkg/yang"
"github.com/openconfig/ygot/ytypes"
log "github.com/sirupsen/logrus"
"os" "os"
"reflect" "reflect"
"sort" "sort"
"testing" "testing"
model "code.fbi.h-da.de/cocsn/gosdn/test/yang"
"github.com/openconfig/goyang/pkg/yang"
"github.com/openconfig/ygot/ytypes"
log "github.com/sirupsen/logrus"
) )
var schema *ytypes.Schema var schema *ytypes.Schema
......
...@@ -2,8 +2,9 @@ package proto ...@@ -2,8 +2,9 @@ package proto
import ( import (
"fmt" "fmt"
"google.golang.org/protobuf/proto"
"io/ioutil" "io/ioutil"
"google.golang.org/protobuf/proto"
) )
/* /*
......
package proto package proto
import ( import (
gpb "github.com/openconfig/gnmi/proto/gnmi"
pb "google.golang.org/protobuf/proto"
"os" "os"
"reflect" "reflect"
"strings" "strings"
"testing" "testing"
gpb "github.com/openconfig/gnmi/proto/gnmi"
pb "google.golang.org/protobuf/proto"
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment