Upgrade gocheck

This commit is contained in:
Chris Read
2014-11-05 13:27:15 -06:00
parent 552b11e28d
commit daf887e54f
32 changed files with 60 additions and 32 deletions

View File

@@ -19,7 +19,7 @@ gom 'github.com/vaughan0/go-ini', :commit => 'a98ad7ee00ec53921f08832bc06ecf7fd6
gom 'github.com/wsxiaoys/terminal/color', :commit => '5668e431776a7957528361f90ce828266c69ed08'
group :test do
gom 'launchpad.net/gocheck'
gom 'gopkg.in/check.v1'
end
group :development do

View File

@@ -1,8 +1,9 @@
package database
import (
. "launchpad.net/gocheck"
"testing"
. "gopkg.in/check.v1"
)
// Launch gocheck tests

View File

@@ -2,9 +2,10 @@ package deb
import (
"github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
"path/filepath"
"runtime"
. "gopkg.in/check.v1"
)
type DebSuite struct {

View File

@@ -1,8 +1,9 @@
package deb
import (
. "launchpad.net/gocheck"
"testing"
. "gopkg.in/check.v1"
)
// Launch gocheck tests

View File

@@ -3,8 +3,9 @@ package deb
import (
"bufio"
"bytes"
. "launchpad.net/gocheck"
"strings"
. "gopkg.in/check.v1"
)
type ControlFileSuite struct {

View File

@@ -2,10 +2,11 @@ package deb
import (
"errors"
. "launchpad.net/gocheck"
"regexp"
"sort"
"strings"
. "gopkg.in/check.v1"
)
type containsChecker struct {

View File

@@ -3,7 +3,8 @@ package deb
import (
"errors"
"github.com/smira/aptly/database"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
)
type LocalRepoSuite struct {

View File

@@ -3,7 +3,8 @@ package deb
import (
"github.com/smira/aptly/database"
"github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
)
type PackageCollectionSuite struct {

View File

@@ -3,9 +3,10 @@ package deb
import (
"github.com/smira/aptly/files"
"github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
"os"
"path/filepath"
. "gopkg.in/check.v1"
)
type PackageFilesSuite struct {

View File

@@ -4,10 +4,11 @@ import (
"bytes"
"github.com/smira/aptly/files"
"github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
"os"
"path/filepath"
"regexp"
. "gopkg.in/check.v1"
)
type PackageSuite struct {

View File

@@ -2,7 +2,8 @@ package deb
import (
"github.com/smira/aptly/utils"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
)
type PpaSuite struct {

View File

@@ -9,9 +9,10 @@ import (
"github.com/smira/aptly/files"
"github.com/ugorji/go/codec"
"io/ioutil"
. "launchpad.net/gocheck"
"os"
"path/filepath"
. "gopkg.in/check.v1"
)
type pathExistsChecker struct {

View File

@@ -3,7 +3,8 @@ package deb
import (
"errors"
"github.com/smira/aptly/database"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
)
type PackageRefListSuite struct {

View File

@@ -10,9 +10,10 @@ import (
"github.com/smira/aptly/utils"
"io"
"io/ioutil"
. "launchpad.net/gocheck"
"os"
"sort"
. "gopkg.in/check.v1"
)
type NullVerifier struct {

View File

@@ -3,7 +3,8 @@ package deb
import (
"errors"
"github.com/smira/aptly/database"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
)
type SnapshotSuite struct {

View File

@@ -1,7 +1,7 @@
package deb
import (
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
)
type VersionSuite struct {

View File

@@ -1,8 +1,9 @@
package files
import (
. "launchpad.net/gocheck"
"testing"
. "gopkg.in/check.v1"
)
// Launch gocheck tests

View File

@@ -2,10 +2,11 @@ package files
import (
"io/ioutil"
. "launchpad.net/gocheck"
"os"
"path/filepath"
"runtime"
. "gopkg.in/check.v1"
)
type PackagePoolSuite struct {

View File

@@ -2,10 +2,11 @@ package files
import (
"io/ioutil"
. "launchpad.net/gocheck"
"os"
"path/filepath"
"syscall"
. "gopkg.in/check.v1"
)
type PublishedStorageSuite struct {

View File

@@ -8,12 +8,13 @@ import (
"github.com/smira/aptly/utils"
"io"
"io/ioutil"
. "launchpad.net/gocheck"
"net"
"net/http"
"os"
"runtime"
"time"
. "gopkg.in/check.v1"
)
type DownloaderSuite struct {

View File

@@ -1,8 +1,9 @@
package http
import (
. "launchpad.net/gocheck"
"testing"
. "gopkg.in/check.v1"
)
// Launch gocheck tests

View File

@@ -2,7 +2,8 @@ package query
import (
"fmt"
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
)
type LexerSuite struct {

View File

@@ -1,8 +1,9 @@
package query
import (
. "launchpad.net/gocheck"
"testing"
. "gopkg.in/check.v1"
)
// Launch gocheck tests

View File

@@ -2,8 +2,9 @@ package query
import (
"github.com/smira/aptly/deb"
. "launchpad.net/gocheck"
"regexp"
. "gopkg.in/check.v1"
)
type SyntaxSuite struct {

View File

@@ -5,9 +5,10 @@ import (
"github.com/mitchellh/goamz/s3/s3test"
"github.com/smira/aptly/files"
"io/ioutil"
. "launchpad.net/gocheck"
"os"
"path/filepath"
. "gopkg.in/check.v1"
)
type PublishedStorageSuite struct {

View File

@@ -1,8 +1,9 @@
package s3
import (
. "launchpad.net/gocheck"
"testing"
. "gopkg.in/check.v1"
)
// Launch gocheck tests

View File

@@ -2,8 +2,9 @@ package utils
import (
"io/ioutil"
. "launchpad.net/gocheck"
"os"
. "gopkg.in/check.v1"
)
type ChecksumSuite struct {

View File

@@ -4,8 +4,9 @@ import (
"compress/bzip2"
"compress/gzip"
"io/ioutil"
. "launchpad.net/gocheck"
"os"
. "gopkg.in/check.v1"
)
type CompressSuite struct {

View File

@@ -1,9 +1,10 @@
package utils
import (
. "launchpad.net/gocheck"
"os"
"path/filepath"
. "gopkg.in/check.v1"
)
type ConfigSuite struct {

View File

@@ -1,7 +1,7 @@
package utils
import (
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
)
type HumanSuite struct{}

View File

@@ -1,7 +1,7 @@
package utils
import (
. "launchpad.net/gocheck"
. "gopkg.in/check.v1"
)
type ListSuite struct {

View File

@@ -1,8 +1,9 @@
package utils
import (
. "launchpad.net/gocheck"
"testing"
. "gopkg.in/check.v1"
)
// Launch gocheck tests