1 Commits

Author SHA1 Message Date
Michael Muré
dba91a583e add a GHA workflow to run the tests 2025-07-29 14:06:15 +02:00
3 changed files with 27 additions and 7 deletions

27
.github/workflows/gotest.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
on: [push, pull_request]
name: Go Test
jobs:
unit:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu" ]
go: [ "1.23.x", "1.24.x"]
env:
COVERAGES: ""
runs-on: ${{ matrix.os }}-latest
name: ${{ matrix.os}} (go ${{ matrix.go }})
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Go information
run: |
go version
go env
- name: Run tests
run: go test -v ./...
- name: Check formatted
run: gofmt -l .

View File

@@ -61,10 +61,6 @@ func (v testVarsig) Discriminator() varsig.Discriminator {
return v.disc
}
func (v testVarsig) Hash() varsig.Hash {
return varsig.HashUnspecified
}
func (v testVarsig) PayloadEncoding() varsig.PayloadEncoding {
return v.payEnc
}

View File

@@ -32,9 +32,6 @@ type Varsig interface {
// Discriminator returns the algorithm used to produce the corresponding signature.
Discriminator() Discriminator
// Hash returns the hash used on the data before signature.
Hash() Hash
// PayloadEncoding returns the codec that was used to encode the signed data.
PayloadEncoding() PayloadEncoding