Commit 8e7c8521 authored by tavit ohanian's avatar tavit ohanian

initial port

parent 4e43e37f
Pipeline #425 passed with stages
in 25 seconds
stages:
- build
- test
variables:
BUILD_DIR: "/tmp/$CI_CONCURRENT_PROJECT_ID"
before_script:
- mkdir -p $BUILD_DIR/src
- cd $BUILD_DIR/src
- if [ -d $CI_PROJECT_DIR ]
- then
- echo "soft link $CI_PROJECT_DIR exists"
- else
- echo "creating soft link $CI_PROJECT_DIR"
- ln -s $CI_PROJECT_DIR
- fi
- cd $CI_PROJECT_DIR
build:
stage: build
tags:
- testing
script:
- echo $CI_JOB_STAGE
- go build
test:
stage: test
tags:
- testing
script:
- echo $CI_JOB_STAGE
- go test -cover
coverage: '/coverage: \d+.\d+% of statements/'
...@@ -3,7 +3,7 @@ package msgio ...@@ -3,7 +3,7 @@ package msgio
import ( import (
"io" "io"
pool "github.com/libp2p/go-buffer-pool" pool "gitlab.dms3.io/p2p/go-buffer-pool"
) )
// Chan is a msgio duplex channel. It is used to have a channel interface // Chan is a msgio duplex channel. It is used to have a channel interface
......
...@@ -6,7 +6,7 @@ import "bytes" ...@@ -6,7 +6,7 @@ import "bytes"
// get the go-fuzz tools and build a fuzzer // get the go-fuzz tools and build a fuzzer
// $ go get -u github.com/dvyukov/go-fuzz/... // $ go get -u github.com/dvyukov/go-fuzz/...
// $ go-fuzz-build github.com/libp2p/go-msgio // $ go-fuzz-build gitlab.dms3.io/p2p/go-msgio
// put a corpus of random (even better if actual, structured) data in a corpus directry // put a corpus of random (even better if actual, structured) data in a corpus directry
// $ go-fuzz -bin ./msgio-fuzz -corpus corpus -workdir=wdir -timeout=15 // $ go-fuzz -bin ./msgio-fuzz -corpus corpus -workdir=wdir -timeout=15
......
...@@ -2,8 +2,8 @@ github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls= ...@@ -2,8 +2,8 @@ github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/libp2p/go-buffer-pool v0.0.2 h1:QNK2iAFa8gjAe1SPz6mHSMuCcjs+X1wlHzeOSqcmlfs=
github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM=
github.com/multiformats/go-varint v0.0.6 h1:gk85QWKxh3TazbLxED/NlDVv8+q+ReFJk7Y2W/KhfNY= github.com/multiformats/go-varint v0.0.6 h1:gk85QWKxh3TazbLxED/NlDVv8+q+ReFJk7Y2W/KhfNY=
github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE=
gitlab.dms3.io/p2p/go-buffer-pool v0.0.1 h1:2IUBfHOWOarILKvoF1NHnfSUD5MMI/g6f64ZTUwacoA=
gitlab.dms3.io/p2p/go-buffer-pool v0.0.1/go.mod h1:M+a5uWIUEkiKihMm5+IL0+pqzG6G7mcD6nNWosKUKO0=
golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"io" "io"
"sync" "sync"
pool "github.com/libp2p/go-buffer-pool" pool "gitlab.dms3.io/p2p/go-buffer-pool"
) )
// ErrMsgTooLarge is returned when the message length is exessive // ErrMsgTooLarge is returned when the message length is exessive
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"strconv" "strconv"
"strings" "strings"
msgio "github.com/libp2p/go-msgio" msgio "gitlab.dms3.io/p2p/go-msgio"
) )
var Args ArgType var Args ArgType
......
...@@ -41,8 +41,8 @@ import ( ...@@ -41,8 +41,8 @@ import (
"github.com/gogo/protobuf/test" "github.com/gogo/protobuf/test"
"github.com/libp2p/go-msgio/protoio"
"github.com/multiformats/go-varint" "github.com/multiformats/go-varint"
"gitlab.dms3.io/p2p/go-msgio/protoio"
) )
func TestVarintNormal(t *testing.T) { func TestVarintNormal(t *testing.T) {
......
...@@ -5,8 +5,8 @@ import ( ...@@ -5,8 +5,8 @@ import (
"io" "io"
"sync" "sync"
pool "github.com/libp2p/go-buffer-pool"
"github.com/multiformats/go-varint" "github.com/multiformats/go-varint"
pool "gitlab.dms3.io/p2p/go-buffer-pool"
) )
// varintWriter is the underlying type that implements the Writer interface. // varintWriter is the underlying type that implements the Writer interface.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment