fix repo path

This commit is contained in:
Matthew Rich 2024-05-08 21:08:10 +00:00
parent 965b9a3b0a
commit f3b42297d4
10 changed files with 28 additions and 11 deletions

8
Makefile Normal file
View File

@ -0,0 +1,8 @@
LDFLAGS?=--ldflags '-extldflags "-static"' --ldflags="-X 'main.commit=$(shell git rev-parse HEAD)' -X 'main.version=$(shell git describe --tags)' -X 'main.date=$(shell date '+%Y-%m-%d %T.%s%z')'"
export CGO_ENABLED=0
build-run:
docker run -v $(shell pwd):/code -w /code -it registry.cv.mazarbul.net/declarative/build-golang:1.22.1-alpine-x86_64 sh
test:
go test -coverprofile=artifacts/coverage.profile ./...
go tool cover -html=artifacts/coverage.profile -o artifacts/code-coverage.html

View File

@ -1,10 +1,11 @@
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package fixture_test
import (
"testing"
"math"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
"testing/fixture"
)
func Fixture2Pow(p fixture.Param) interface{} {

View File

@ -1,4 +1,5 @@
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package mockdata
import (
@ -9,7 +10,7 @@ import (
// "fmt"
// "strings"
// "strconv"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
"testing/fixture"
)
// Raw file fixture data

View File

@ -1,10 +1,11 @@
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package mockdata_test
import (
"testing"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
"gitea.cv.mazarbul.net/rosskeen.house/testing/md"
"testing/fixture"
"testing/md"
)
type MockDataTest struct {

View File

@ -1,4 +1,5 @@
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package mockdata
import (
@ -7,7 +8,7 @@ import (
"gopkg.in/yaml.v2"
"log"
"fmt"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
"testing/fixture"
)
// Return a structure to load the mock data into

View File

@ -1,11 +1,12 @@
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package mockdata
import (
"path/filepath"
"log"
"fmt"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
"testing/fixture"
)
type Results struct {

View File

@ -1,4 +1,5 @@
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package testdata
import (
@ -6,7 +7,7 @@ import (
"path/filepath"
"log"
"fmt"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
"testing/fixture"
)

View File

@ -1,11 +1,12 @@
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package testdata
import (
"path/filepath"
"log"
"fmt"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
"testing/fixture"
)
type TypeConversion func(value interface{}) interface{}

View File

@ -1,4 +1,5 @@
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package testdata
import (
@ -9,7 +10,7 @@ import (
// "fmt"
// "strings"
// "strconv"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
"testing/fixture"
)
// Raw file fixture data

View File

@ -1,12 +1,13 @@
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package testdata_test
import (
"testing"
"strconv"
"strings"
"gitea.cv.mazarbul.net/rosskeen.house/testing/fixture"
"gitea.cv.mazarbul.net/rosskeen.house/testing/td"
"testing/fixture"
"testing/td"
)
func TestTDFixture(t *testing.T) {