Commit 47a64535 authored by tavit ohanian's avatar tavit ohanian

initial port

parent 57df3f6a
Pipeline #654 failed with stages
in 11 minutes and 26 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 cidranger
import (
"net"
rnet "github.com/libp2p/go-cidranger/net"
rnet "gitlab.dms3.io/p2p/go-cidranger/net"
)
// bruteRanger is a brute force implementation of Ranger. Insertion and
......
......@@ -8,8 +8,8 @@ import (
"testing"
"time"
rnet "github.com/libp2p/go-cidranger/net"
"github.com/stretchr/testify/assert"
rnet "gitlab.dms3.io/p2p/go-cidranger/net"
)
/*
......
......@@ -5,7 +5,7 @@ import (
"net"
"strings"
rnet "github.com/libp2p/go-cidranger/net"
rnet "gitlab.dms3.io/p2p/go-cidranger/net"
)
// prefixTrie is a path-compressed (PC) trie implementation of the
......
......@@ -2,15 +2,16 @@ package cidranger
import (
"encoding/binary"
detectrace "github.com/ipfs/go-detect-race"
"math/rand"
"net"
"runtime"
"testing"
"time"
rnet "github.com/libp2p/go-cidranger/net"
detectrace "gitlab.dms3.io/dms3/public/go-detect-race"
"github.com/stretchr/testify/assert"
rnet "gitlab.dms3.io/p2p/go-cidranger/net"
)
func getAllByVersion(version rnet.IPVersion) *net.IPNet {
......
......@@ -3,7 +3,7 @@ package cidranger
import (
"net"
rnet "github.com/libp2p/go-cidranger/net"
rnet "gitlab.dms3.io/p2p/go-cidranger/net"
)
type rangerFactory func(rnet.IPVersion) Ranger
......
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