nidus-sync/db/factory/bobfactory_random.bob_test.go

148 lines
3 KiB
Go
Raw Normal View History

// Code generated by BobGen psql v0.0.4-0.20260105020634-53e08d840e47+dirty. DO NOT EDIT.
2025-11-04 23:11:32 +00:00
// This file is meant to be re-generated in place and/or deleted at any time.
package factory
import (
"bytes"
"slices"
2025-11-04 23:11:32 +00:00
"testing"
"github.com/stephenafamo/bob"
)
// Set the testDB to enable tests that use the database
var testDB bob.Transactor[bob.Tx]
func TestRandom___byte(t *testing.T) {
t.Parallel()
val1 := random___byte(nil)
val2 := random___byte(nil)
if bytes.Equal(val1, val2) {
t.Fatalf("random___byte() returned the same value twice: %v", val1)
}
}
func TestRandom_float32(t *testing.T) {
t.Parallel()
val1 := random_float32(nil)
val2 := random_float32(nil)
if val1 == val2 {
t.Fatalf("random_float32() returned the same value twice: %v", val1)
}
}
func TestRandom_float64(t *testing.T) {
t.Parallel()
val1 := random_float64(nil)
val2 := random_float64(nil)
if val1 == val2 {
t.Fatalf("random_float64() returned the same value twice: %v", val1)
}
}
func TestRandom_int16(t *testing.T) {
t.Parallel()
val1 := random_int16(nil)
val2 := random_int16(nil)
if val1 == val2 {
t.Fatalf("random_int16() returned the same value twice: %v", val1)
}
}
2025-11-04 23:11:32 +00:00
func TestRandom_int32(t *testing.T) {
t.Parallel()
val1 := random_int32(nil)
val2 := random_int32(nil)
if val1 == val2 {
t.Fatalf("random_int32() returned the same value twice: %v", val1)
}
}
func TestRandom_int64(t *testing.T) {
t.Parallel()
val1 := random_int64(nil)
val2 := random_int64(nil)
if val1 == val2 {
t.Fatalf("random_int64() returned the same value twice: %v", val1)
}
}
func TestRandom_pq_Float64Array(t *testing.T) {
t.Parallel()
val1 := random_pq_Float64Array(nil)
val2 := random_pq_Float64Array(nil)
if slices.Equal(val1, val2) {
t.Fatalf("random_pq_Float64Array() returned the same value twice: %v", val1)
}
}
func TestRandom_pq_StringArray(t *testing.T) {
t.Parallel()
val1 := random_pq_StringArray(nil)
val2 := random_pq_StringArray(nil)
if slices.Equal(val1, val2) {
t.Fatalf("random_pq_StringArray() returned the same value twice: %v", val1)
}
}
2025-11-04 23:11:32 +00:00
func TestRandom_string(t *testing.T) {
t.Parallel()
val1 := random_string(nil)
val2 := random_string(nil)
if val1 == val2 {
t.Fatalf("random_string() returned the same value twice: %v", val1)
}
}
func TestRandom_time_Time(t *testing.T) {
t.Parallel()
val1 := random_time_Time(nil)
val2 := random_time_Time(nil)
if val1.Equal(val2) {
t.Fatalf("random_time_Time() returned the same value twice: %v", val1)
}
}
func TestRandom_types_JSON_json_RawMessage_(t *testing.T) {
t.Parallel()
val1 := random_types_JSON_json_RawMessage_(nil)
val2 := random_types_JSON_json_RawMessage_(nil)
if bytes.Equal(val1.Val, val2.Val) {
t.Fatalf("random_types_JSON_json_RawMessage_() returned the same value twice: %v", val1)
}
}
func TestRandom_uuid_UUID(t *testing.T) {
t.Parallel()
val1 := random_uuid_UUID(nil)
val2 := random_uuid_UUID(nil)
if val1 == val2 {
t.Fatalf("random_uuid_UUID() returned the same value twice: %v", val1)
}
}