all: sort imports in the standard way #1601

Merged
merged 1 commit into from Feb 16, 2015
Jump to file or symbol
Failed to load files and symbols.
+117 −109
Split
@@ -4,8 +4,9 @@
package annotations_test
import (
- gc "gopkg.in/check.v1"
"testing"
+
+ gc "gopkg.in/check.v1"
)
func TestAll(t *testing.T) {
@@ -4,8 +4,9 @@
package charms_test
import (
- gc "gopkg.in/check.v1"
"testing"
+
+ gc "gopkg.in/check.v1"
)
func TestAll(t *testing.T) {
@@ -6,14 +6,14 @@ package diskformatter_test
import (
"errors"
+ "github.com/juju/names"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"github.com/juju/juju/api/base/testing"
"github.com/juju/juju/api/diskformatter"
"github.com/juju/juju/apiserver/params"
coretesting "github.com/juju/juju/testing"
- "github.com/juju/names"
)
var _ = gc.Suite(&DiskFormatterSuite{})
@@ -7,6 +7,7 @@ import (
"errors"
"fmt"
+ "github.com/juju/names"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
@@ -15,7 +16,6 @@ import (
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/storage"
coretesting "github.com/juju/juju/testing"
- "github.com/juju/names"
)
var _ = gc.Suite(&DiskManagerSuite{})
@@ -6,13 +6,13 @@ package storage_test
import (
"github.com/juju/names"
jc "github.com/juju/testing/checkers"
+ "github.com/juju/utils/set"
gc "gopkg.in/check.v1"
basetesting "github.com/juju/juju/api/base/testing"
"github.com/juju/juju/api/storage"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/testing"
- "github.com/juju/utils/set"
)
type storageMockSuite struct {
View
@@ -7,9 +7,9 @@ import (
"fmt"
"net/url"
+ "github.com/juju/errors"
"gopkg.in/juju/charm.v4"
- "github.com/juju/errors"
"github.com/juju/juju/apiserver/params"
)
@@ -4,8 +4,9 @@
package annotations
import (
- "github.com/juju/juju/state"
"github.com/juju/names"
+
+ "github.com/juju/juju/state"
)
type annotationAccess interface {
@@ -5,13 +5,13 @@ package charms
import (
"github.com/juju/errors"
+ "github.com/juju/utils/set"
"gopkg.in/juju/charm.v4"
"github.com/juju/juju/api"
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
- "github.com/juju/utils/set"
)
func init() {
@@ -4,15 +4,16 @@
package charms_test
import (
+ jc "github.com/juju/testing/checkers"
+ gc "gopkg.in/check.v1"
+ "gopkg.in/juju/charm.v4"
+
"github.com/juju/juju/api"
"github.com/juju/juju/apiserver/charms"
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/apiserver/testing"
jujutesting "github.com/juju/juju/juju/testing"
- jc "github.com/juju/testing/checkers"
- gc "gopkg.in/check.v1"
- "gopkg.in/juju/charm.v4"
)
type baseCharmsSuite struct {
@@ -4,8 +4,9 @@
package charms
import (
- "github.com/juju/juju/state"
"gopkg.in/juju/charm.v4"
+
+ "github.com/juju/juju/state"
)
type charmsAccess interface {
@@ -4,11 +4,10 @@
package common_test
import (
+ "github.com/juju/errors"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
- "github.com/juju/errors"
-
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/environs/config"
"github.com/juju/juju/testing"
@@ -7,12 +7,12 @@ import (
"fmt"
stdtesting "testing"
+ "github.com/juju/names"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"github.com/juju/juju/apiserver/common"
coretesting "github.com/juju/juju/testing"
- "github.com/juju/names"
)
func TestAll(t *stdtesting.T) {
@@ -5,9 +5,10 @@ package common
import (
"github.com/juju/errors"
+ "github.com/juju/names"
+
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
// DeadEnsurer implements a common EnsureDead method for use by
@@ -4,10 +4,11 @@
package common
import (
+ "github.com/juju/names"
+
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/instance"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
// InstanceIdGetter implements a common InstanceId method for use by
@@ -5,9 +5,10 @@ package common
import (
"github.com/juju/errors"
+ "github.com/juju/names"
+
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
// LifeGetter implements a common Life method for use by various facades.
@@ -6,14 +6,14 @@ package common_test
import (
"fmt"
+ "github.com/juju/names"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
apiservertesting "github.com/juju/juju/apiserver/testing"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
type lifeSuite struct{}
@@ -2,9 +2,10 @@ package common
import (
"github.com/juju/errors"
+ "github.com/juju/names"
+
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
// RebootRequester implements the RequestReboot API method
@@ -7,9 +7,10 @@ import (
"fmt"
"github.com/juju/errors"
+ "github.com/juju/names"
+
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
// Remover implements a common Remove method for use by various facades.
@@ -6,14 +6,14 @@ package common_test
import (
"fmt"
+ "github.com/juju/names"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
apiservertesting "github.com/juju/juju/apiserver/testing"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
type removeSuite struct{}
@@ -7,9 +7,10 @@ import (
"fmt"
"github.com/juju/errors"
+ "github.com/juju/names"
+
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
// StatusSetter implements a common SetStatus method for use by
@@ -6,14 +6,14 @@ package common_test
import (
"fmt"
+ "github.com/juju/names"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
apiservertesting "github.com/juju/juju/apiserver/testing"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
type statusSetterSuite struct{}
@@ -5,10 +5,11 @@ package common
import (
"github.com/juju/errors"
+ "github.com/juju/names"
+
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
"github.com/juju/juju/state/watcher"
- "github.com/juju/names"
)
// UnitsWatcher implements a common WatchUnits method for use by
@@ -5,10 +5,11 @@ package common
import (
"github.com/juju/errors"
+ "github.com/juju/names"
+
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/state"
"github.com/juju/juju/state/watcher"
- "github.com/juju/names"
)
// AgentEntityWatcher implements a common Watch method for use by
@@ -6,14 +6,14 @@ package common_test
import (
"fmt"
+ "github.com/juju/names"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
apiservertesting "github.com/juju/juju/apiserver/testing"
"github.com/juju/juju/state"
- "github.com/juju/names"
)
type agentEntityWatcherSuite struct{}
@@ -4,8 +4,9 @@
package diskformatter
import (
- "github.com/juju/juju/state"
"github.com/juju/names"
+
+ "github.com/juju/juju/state"
)
type stateInterface interface {
@@ -16,17 +16,16 @@ import (
"github.com/juju/juju/environs"
"github.com/juju/juju/environs/config"
jujutesting "github.com/juju/juju/juju/testing"
- "github.com/juju/juju/state"
- coretesting "github.com/juju/juju/testing"
- "github.com/juju/juju/version"
-
// Register the providers for the field check test
_ "github.com/juju/juju/provider/azure"
_ "github.com/juju/juju/provider/ec2"
_ "github.com/juju/juju/provider/joyent"
_ "github.com/juju/juju/provider/local"
_ "github.com/juju/juju/provider/maas"
_ "github.com/juju/juju/provider/openstack"
+ "github.com/juju/juju/state"
+ coretesting "github.com/juju/juju/testing"
+ "github.com/juju/juju/version"
)
type envManagerSuite struct {
@@ -4,11 +4,10 @@
package machine_test
import (
+ "github.com/juju/names"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
- "github.com/juju/names"
-
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/machine"
"github.com/juju/juju/apiserver/params"
@@ -4,8 +4,9 @@
package storage
import (
- "github.com/juju/juju/state"
"github.com/juju/names"
+
+ "github.com/juju/juju/state"
)
type storageAccess interface {
@@ -4,9 +4,9 @@
package storage
import (
+ "github.com/juju/errors"
"github.com/juju/names"
- "github.com/juju/errors"
"github.com/juju/juju/apiserver/common"
"github.com/juju/juju/apiserver/params"
"github.com/juju/juju/feature"
Oops, something went wrong.