testhelpers_test.go 469 B

123456789101112131415
  1. //go:build unit
  2. package service
  3. // testPtrFloat64 returns a pointer to the given float64 value.
  4. func testPtrFloat64(v float64) *float64 { return &v }
  5. // testPtrInt returns a pointer to the given int value.
  6. func testPtrInt(v int) *int { return &v }
  7. // testPtrString returns a pointer to the given string value.
  8. func testPtrString(v string) *string { return &v }
  9. // testPtrBool returns a pointer to the given bool value.
  10. func testPtrBool(v bool) *bool { return &v }