Merge remote-tracking branch 'cread/gocheck'

This commit is contained in:
Andrey Smirnov
2015-01-05 14:23:38 +03:00
32 changed files with 60 additions and 32 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ gom 'github.com/vaughan0/go-ini', :commit => 'a98ad7ee00ec53921f08832bc06ecf7fd6
gom 'github.com/wsxiaoys/terminal/color', :commit => '5668e431776a7957528361f90ce828266c69ed08' gom 'github.com/wsxiaoys/terminal/color', :commit => '5668e431776a7957528361f90ce828266c69ed08'
group :test do group :test do
gom 'launchpad.net/gocheck' gom 'gopkg.in/check.v1'
end end
group :development do group :development do
+2 -1
View File
@@ -1,8 +1,9 @@
package database package database
import ( import (
. "launchpad.net/gocheck"
"testing" "testing"
. "gopkg.in/check.v1"
) )
// Launch gocheck tests // Launch gocheck tests
+2 -1
View File
@@ -2,9 +2,10 @@ package deb
import ( import (
"github.com/smira/aptly/utils" "github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
"path/filepath" "path/filepath"
"runtime" "runtime"
. "gopkg.in/check.v1"
) )
type DebSuite struct { type DebSuite struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package deb package deb
import ( import (
. "launchpad.net/gocheck"
"testing" "testing"
. "gopkg.in/check.v1"
) )
// Launch gocheck tests // Launch gocheck tests
+2 -1
View File
@@ -3,8 +3,9 @@ package deb
import ( import (
"bufio" "bufio"
"bytes" "bytes"
. "launchpad.net/gocheck"
"strings" "strings"
. "gopkg.in/check.v1"
) )
type ControlFileSuite struct { type ControlFileSuite struct {
+2 -1
View File
@@ -2,10 +2,11 @@ package deb
import ( import (
"errors" "errors"
. "launchpad.net/gocheck"
"regexp" "regexp"
"sort" "sort"
"strings" "strings"
. "gopkg.in/check.v1"
) )
type containsChecker struct { type containsChecker struct {
+2 -1
View File
@@ -3,7 +3,8 @@ package deb
import ( import (
"errors" "errors"
"github.com/smira/aptly/database" "github.com/smira/aptly/database"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
) )
type LocalRepoSuite struct { type LocalRepoSuite struct {
+2 -1
View File
@@ -3,7 +3,8 @@ package deb
import ( import (
"github.com/smira/aptly/database" "github.com/smira/aptly/database"
"github.com/smira/aptly/utils" "github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
) )
type PackageCollectionSuite struct { type PackageCollectionSuite struct {
+2 -1
View File
@@ -3,9 +3,10 @@ package deb
import ( import (
"github.com/smira/aptly/files" "github.com/smira/aptly/files"
"github.com/smira/aptly/utils" "github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
"os" "os"
"path/filepath" "path/filepath"
. "gopkg.in/check.v1"
) )
type PackageFilesSuite struct { type PackageFilesSuite struct {
+2 -1
View File
@@ -4,10 +4,11 @@ import (
"bytes" "bytes"
"github.com/smira/aptly/files" "github.com/smira/aptly/files"
"github.com/smira/aptly/utils" "github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
"os" "os"
"path/filepath" "path/filepath"
"regexp" "regexp"
. "gopkg.in/check.v1"
) )
type PackageSuite struct { type PackageSuite struct {
+2 -1
View File
@@ -2,7 +2,8 @@ package deb
import ( import (
"github.com/smira/aptly/utils" "github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
) )
type PpaSuite struct { type PpaSuite struct {
+2 -1
View File
@@ -9,9 +9,10 @@ import (
"github.com/smira/aptly/files" "github.com/smira/aptly/files"
"github.com/ugorji/go/codec" "github.com/ugorji/go/codec"
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"os" "os"
"path/filepath" "path/filepath"
. "gopkg.in/check.v1"
) )
type pathExistsChecker struct { type pathExistsChecker struct {
+2 -1
View File
@@ -3,7 +3,8 @@ package deb
import ( import (
"errors" "errors"
"github.com/smira/aptly/database" "github.com/smira/aptly/database"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
) )
type PackageRefListSuite struct { type PackageRefListSuite struct {
+2 -1
View File
@@ -10,9 +10,10 @@ import (
"github.com/smira/aptly/utils" "github.com/smira/aptly/utils"
"io" "io"
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"os" "os"
"sort" "sort"
. "gopkg.in/check.v1"
) )
type NullVerifier struct { type NullVerifier struct {
+2 -1
View File
@@ -3,7 +3,8 @@ package deb
import ( import (
"errors" "errors"
"github.com/smira/aptly/database" "github.com/smira/aptly/database"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
) )
type SnapshotSuite struct { type SnapshotSuite struct {
+1 -1
View File
@@ -1,7 +1,7 @@
package deb package deb
import ( import (
. "launchpad.net/gocheck" . "gopkg.in/check.v1"
) )
type VersionSuite struct { type VersionSuite struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package files package files
import ( import (
. "launchpad.net/gocheck"
"testing" "testing"
. "gopkg.in/check.v1"
) )
// Launch gocheck tests // Launch gocheck tests
+2 -1
View File
@@ -2,10 +2,11 @@ package files
import ( import (
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"os" "os"
"path/filepath" "path/filepath"
"runtime" "runtime"
. "gopkg.in/check.v1"
) )
type PackagePoolSuite struct { type PackagePoolSuite struct {
+2 -1
View File
@@ -2,10 +2,11 @@ package files
import ( import (
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"os" "os"
"path/filepath" "path/filepath"
"syscall" "syscall"
. "gopkg.in/check.v1"
) )
type PublishedStorageSuite struct { type PublishedStorageSuite struct {
+2 -1
View File
@@ -8,12 +8,13 @@ import (
"github.com/smira/aptly/utils" "github.com/smira/aptly/utils"
"io" "io"
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"net" "net"
"net/http" "net/http"
"os" "os"
"runtime" "runtime"
"time" "time"
. "gopkg.in/check.v1"
) )
type DownloaderSuite struct { type DownloaderSuite struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package http package http
import ( import (
. "launchpad.net/gocheck"
"testing" "testing"
. "gopkg.in/check.v1"
) )
// Launch gocheck tests // Launch gocheck tests
+2 -1
View File
@@ -2,7 +2,8 @@ package query
import ( import (
"fmt" "fmt"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
) )
type LexerSuite struct { type LexerSuite struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package query package query
import ( import (
. "launchpad.net/gocheck"
"testing" "testing"
. "gopkg.in/check.v1"
) )
// Launch gocheck tests // Launch gocheck tests
+2 -1
View File
@@ -2,8 +2,9 @@ package query
import ( import (
"github.com/smira/aptly/deb" "github.com/smira/aptly/deb"
. "launchpad.net/gocheck"
"regexp" "regexp"
. "gopkg.in/check.v1"
) )
type SyntaxSuite struct { type SyntaxSuite struct {
+2 -1
View File
@@ -5,9 +5,10 @@ import (
"github.com/mitchellh/goamz/s3/s3test" "github.com/mitchellh/goamz/s3/s3test"
"github.com/smira/aptly/files" "github.com/smira/aptly/files"
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"os" "os"
"path/filepath" "path/filepath"
. "gopkg.in/check.v1"
) )
type PublishedStorageSuite struct { type PublishedStorageSuite struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package s3 package s3
import ( import (
. "launchpad.net/gocheck"
"testing" "testing"
. "gopkg.in/check.v1"
) )
// Launch gocheck tests // Launch gocheck tests
+2 -1
View File
@@ -2,8 +2,9 @@ package utils
import ( import (
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"os" "os"
. "gopkg.in/check.v1"
) )
type ChecksumSuite struct { type ChecksumSuite struct {
+2 -1
View File
@@ -4,8 +4,9 @@ import (
"compress/bzip2" "compress/bzip2"
"compress/gzip" "compress/gzip"
"io/ioutil" "io/ioutil"
. "launchpad.net/gocheck"
"os" "os"
. "gopkg.in/check.v1"
) )
type CompressSuite struct { type CompressSuite struct {
+2 -1
View File
@@ -1,9 +1,10 @@
package utils package utils
import ( import (
. "launchpad.net/gocheck"
"os" "os"
"path/filepath" "path/filepath"
. "gopkg.in/check.v1"
) )
type ConfigSuite struct { type ConfigSuite struct {
+1 -1
View File
@@ -1,7 +1,7 @@
package utils package utils
import ( import (
. "launchpad.net/gocheck" . "gopkg.in/check.v1"
) )
type HumanSuite struct{} type HumanSuite struct{}
+1 -1
View File
@@ -1,7 +1,7 @@
package utils package utils
import ( import (
. "launchpad.net/gocheck" . "gopkg.in/check.v1"
) )
type ListSuite struct { type ListSuite struct {
+2 -1
View File
@@ -1,8 +1,9 @@
package utils package utils
import ( import (
. "launchpad.net/gocheck"
"testing" "testing"
. "gopkg.in/check.v1"
) )
// Launch gocheck tests // Launch gocheck tests