Skip to content

Commit

Permalink
#178 Savepoint
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Feb 7, 2025
1 parent 7352b82 commit 37331ae
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ coverage: coverage-osarch-specific
.PHONY: check-coverage
check-coverage: export SENZING_LOG_LEVEL=TRACE
check-coverage:
@go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
@go test ./... -v -p 1 -coverprofile=./cover.out -covermode=atomic -coverpkg=./... ./...
@${GOBIN}/go-test-coverage --config=.github/coverage/testcoverage.yaml

# -----------------------------------------------------------------------------
Expand Down
40 changes: 26 additions & 14 deletions testdata/testdata_test.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
package testdata

import (
"testing"

"github.com/stretchr/testify/assert"
)

// ----------------------------------------------------------------------------
// Interface methods - test
// ----------------------------------------------------------------------------

func TestTestdata_String(test *testing.T) {
testValue := &TestData{
Int64s: Data1_int64s,
Strings: Data1_strings,
Uintptrs: Data1_uintptrs,
}
assert.Equal(test, "", testValue.String("GetFeatureResult"))
}
// func TestDestdata_Int64(test *testing.T) {
// testValue := &TestData{
// Int64s: Data1_int64s,
// Strings: Data1_strings,
// Uintptrs: Data1_uintptrs,
// }
// assert.Equal(test, int64(0), testValue.Int64("GetFeatureResult"))
// }

// func TestDestdata_String(test *testing.T) {
// testValue := &TestData{
// Int64s: Data1_int64s,
// Strings: Data1_strings,
// Uintptrs: Data1_uintptrs,
// }
// assert.Equal(test, "", testValue.String("GetFeatureResult"))
// }

// func TestDestdata_Uintptr(test *testing.T) {
// testValue := &TestData{
// Int64s: Data1_int64s,
// Strings: Data1_strings,
// Uintptrs: Data1_uintptrs,
// }
// assert.Equal(test, uintptr(99), testValue.Uintptr("GetFeatureResult"))
// }

0 comments on commit 37331ae

Please sign in to comment.