From 2bc75744f01905cc9d95080c009b06024cb2be29 Mon Sep 17 00:00:00 2001 From: Marko Juraga Date: Thu, 5 Sep 2024 16:48:50 +0200 Subject: [PATCH] TEST/MINOR: compare: changing generation to accomodate interface{} --- cmd/struct_equal_generator/generate.go | 10 ++ cmd/struct_equal_generator/header.tmpl | 1 + cmd/struct_equal_generator/test.tmpl | 6 +- models/acl_compare_test.go | 13 +- models/acl_file_compare_test.go | 13 +- models/acl_file_entry_compare_test.go | 13 +- models/aws_filters_compare_test.go | 13 +- models/aws_region_compare_test.go | 13 +- models/backend_base_compare_test.go | 61 ++++---- models/backend_compare_test.go | 13 +- models/backend_switching_rule_compare_test.go | 13 +- models/balance_compare_test.go | 13 +- models/bind_compare_test.go | 13 +- models/bind_params_compare_test.go | 13 +- models/cache_compare_test.go | 13 +- models/capture_compare_test.go | 13 +- models/cluster_settings_compare_test.go | 37 ++--- models/compression_compare_test.go | 13 +- models/config_stick_table_compare_test.go | 13 +- models/consul_compare_test.go | 13 +- models/cookie_compare_test.go | 37 ++--- models/crt_load_compare_test.go | 13 +- models/crt_store_compare_test.go | 13 +- models/debug_options_compare_test.go | 13 +- models/default_bind_compare_test.go | 13 +- models/default_server_compare_test.go | 13 +- models/defaults_base_compare_test.go | 13 +- models/defaults_compare_test.go | 13 +- models/device_atlas_options_compare_test.go | 13 +- models/dgram_bind_compare_test.go | 13 +- models/email_alert_compare_test.go | 13 +- models/endpoint_compare_test.go | 13 +- models/environment_options_compare_test.go | 37 ++--- models/error_compare_test.go | 13 +- models/errorfile_compare_test.go | 13 +- models/errorfiles_compare_test.go | 13 +- models/errorloc_compare_test.go | 13 +- models/fcgi_app_base_compare_test.go | 13 +- models/fcgi_app_compare_test.go | 13 +- models/fcgi_log_stderr_compare_test.go | 25 ++-- models/fcgi_pass_header_compare_test.go | 13 +- models/fcgi_set_param_compare_test.go | 13 +- .../fifty_one_degrees_options_compare_test.go | 13 +- models/filter_compare_test.go | 13 +- models/forwardfor_compare_test.go | 13 +- models/frontend_base_compare_test.go | 13 +- models/frontend_compare_test.go | 13 +- models/general_file_compare_test.go | 13 +- models/global_base_compare_test.go | 133 +++++++++--------- models/global_compare_test.go | 13 +- models/group_compare_test.go | 13 +- models/hash_type_compare_test.go | 13 +- models/health_compare_test.go | 13 +- .../http_after_response_rule_compare_test.go | 13 +- models/http_check_compare_test.go | 13 +- models/http_client_options_compare_test.go | 13 +- models/http_codes_compare_test.go | 13 +- models/http_error_rule_compare_test.go | 13 +- models/http_errors_section_compare_test.go | 13 +- models/http_request_rule_compare_test.go | 13 +- models/http_response_rule_compare_test.go | 13 +- models/httpchk_params_compare_test.go | 13 +- models/info_compare_test.go | 61 ++++---- models/log_forward_base_compare_test.go | 13 +- models/log_forward_compare_test.go | 13 +- models/log_target_compare_test.go | 13 +- models/lua_options_compare_test.go | 37 ++--- models/mailer_entry_compare_test.go | 13 +- models/mailers_section_base_compare_test.go | 13 +- models/mailers_section_compare_test.go | 13 +- models/map_compare_test.go | 13 +- models/map_entry_compare_test.go | 13 +- models/monitor_fail_compare_test.go | 13 +- models/monitor_uri_compare_test.go | 13 +- models/mysql_check_params_compare_test.go | 13 +- models/nameserver_compare_test.go | 13 +- models/native_stat_compare_test.go | 13 +- models/native_stat_stats_compare_test.go | 13 +- models/native_stats_compare_test.go | 13 +- models/ocsp_update_options_compare_test.go | 25 ++-- models/originalto_compare_test.go | 13 +- models/peer_entry_compare_test.go | 13 +- models/peer_section_base_compare_test.go | 13 +- models/peer_section_compare_test.go | 13 +- models/performance_options_compare_test.go | 13 +- models/persist_rule_compare_test.go | 13 +- models/pgsql_check_params_compare_test.go | 13 +- models/process_info_compare_test.go | 13 +- models/process_info_item_compare_test.go | 13 +- models/program_compare_test.go | 13 +- models/redispatch_compare_test.go | 13 +- models/reload_compare_test.go | 13 +- models/resolver_base_compare_test.go | 13 +- models/resolver_compare_test.go | 13 +- models/return_header_compare_test.go | 13 +- models/ring_base_compare_test.go | 13 +- models/ring_compare_test.go | 13 +- models/runtime_add_server_compare_test.go | 13 +- models/runtime_server_compare_test.go | 13 +- models/server_compare_test.go | 17 +-- models/server_params_compare_test.go | 25 ++-- models/server_switching_rule_compare_test.go | 13 +- models/server_template_compare_test.go | 13 +- models/site_compare_test.go | 37 ++--- models/smtpchk_params_compare_test.go | 13 +- models/source_compare_test.go | 13 +- models/spoe_agent_compare_test.go | 13 +- models/spoe_group_compare_test.go | 13 +- models/spoe_message_compare_test.go | 25 ++-- models/spoe_scope_compare_test.go | 13 +- models/spoe_transaction_compare_test.go | 13 +- models/ssl_cert_entry_compare_test.go | 13 +- models/ssl_certificate_compare_test.go | 13 +- models/ssl_options_compare_test.go | 25 ++-- models/stats_auth_compare_test.go | 13 +- models/stats_http_request_compare_test.go | 13 +- models/stats_options_compare_test.go | 13 +- models/stick_rule_compare_test.go | 13 +- models/stick_table_compare_test.go | 25 ++-- models/stick_table_entry_compare_test.go | 13 +- models/table_compare_test.go | 13 +- models/tcp_check_compare_test.go | 13 +- models/tcp_request_rule_compare_test.go | 13 +- models/tcp_response_rule_compare_test.go | 13 +- models/transaction_compare_test.go | 13 +- models/tune_buffer_options_compare_test.go | 13 +- models/tune_lua_options_compare_test.go | 13 +- models/tune_options_compare_test.go | 13 +- models/tune_quic_options_compare_test.go | 13 +- models/tune_ssl_options_compare_test.go | 13 +- models/tune_vars_options_compare_test.go | 13 +- models/tune_zlib_options_compare_test.go | 13 +- models/user_compare_test.go | 13 +- models/userlist_base_compare_test.go | 13 +- models/userlist_compare_test.go | 13 +- models/wurfl_options_compare_test.go | 13 +- 136 files changed, 1151 insertions(+), 1007 deletions(-) diff --git a/cmd/struct_equal_generator/generate.go b/cmd/struct_equal_generator/generate.go index 7f8ca405..7c6461d4 100644 --- a/cmd/struct_equal_generator/generate.go +++ b/cmd/struct_equal_generator/generate.go @@ -53,6 +53,16 @@ func generateEqualAndDiff(opt generateEqualAndDiffOptions) error { } func generateCompareTests(opt generateEqualAndDiffOptions) error { + var metadataIndex int + for i, f := range opt.Fields { + if f.Name == "Metadata" { + metadataIndex = i + break + } + } + if metadataIndex > 0 { + opt.Fields = append(opt.Fields[:metadataIndex], opt.Fields[metadataIndex+1:]...) + } if opt.Mode == "array" { return nil } diff --git a/cmd/struct_equal_generator/header.tmpl b/cmd/struct_equal_generator/header.tmpl index c7f12877..86f1df49 100644 --- a/cmd/struct_equal_generator/header.tmpl +++ b/cmd/struct_equal_generator/header.tmpl @@ -16,6 +16,7 @@ import ( "encoding/gob" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" "github.com/go-openapi/strfmt" jsoniter "github.com/json-iterator/go" diff --git a/cmd/struct_equal_generator/test.tmpl b/cmd/struct_equal_generator/test.tmpl index 7b975174..946582cd 100644 --- a/cmd/struct_equal_generator/test.tmpl +++ b/cmd/struct_equal_generator/test.tmpl @@ -7,7 +7,7 @@ func Test{{$.Name}}{{.}}(t *testing.T) { for i := 0; i < 2; i++ { var sample {{$.Name}} var result {{$.Name}} - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -62,11 +62,11 @@ func Test{{$.Name}}{{.}}False(t *testing.T) { for i := 0; i < 2; i++ { var sample {{$.Name}} var result {{$.Name}} - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/acl_compare_test.go b/models/acl_compare_test.go index 74dcedf9..e67642f4 100644 --- a/models/acl_compare_test.go +++ b/models/acl_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestACLEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ACL var result ACL - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestACLEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ACL var result ACL - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestACLDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ACL var result ACL - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestACLDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ACL var result ACL - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/acl_file_compare_test.go b/models/acl_file_compare_test.go index adf2f1d7..2338c6c2 100644 --- a/models/acl_file_compare_test.go +++ b/models/acl_file_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestACLFileEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ACLFile var result ACLFile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestACLFileEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ACLFile var result ACLFile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestACLFileDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ACLFile var result ACLFile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestACLFileDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ACLFile var result ACLFile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/acl_file_entry_compare_test.go b/models/acl_file_entry_compare_test.go index 2e5b4742..f80d4832 100644 --- a/models/acl_file_entry_compare_test.go +++ b/models/acl_file_entry_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestACLFileEntryEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ACLFileEntry var result ACLFileEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestACLFileEntryEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ACLFileEntry var result ACLFileEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestACLFileEntryDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ACLFileEntry var result ACLFileEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestACLFileEntryDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ACLFileEntry var result ACLFileEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/aws_filters_compare_test.go b/models/aws_filters_compare_test.go index 47ce570a..55e21f2b 100644 --- a/models/aws_filters_compare_test.go +++ b/models/aws_filters_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestAwsFiltersEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample AwsFilters var result AwsFilters - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestAwsFiltersEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample AwsFilters var result AwsFilters - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestAwsFiltersDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample AwsFilters var result AwsFilters - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestAwsFiltersDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample AwsFilters var result AwsFilters - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/aws_region_compare_test.go b/models/aws_region_compare_test.go index 5ee5ee63..9da57855 100644 --- a/models/aws_region_compare_test.go +++ b/models/aws_region_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestAwsRegionEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample AwsRegion var result AwsRegion - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestAwsRegionEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample AwsRegion var result AwsRegion - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -116,7 +117,7 @@ func TestAwsRegionDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample AwsRegion var result AwsRegion - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -158,11 +159,11 @@ func TestAwsRegionDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample AwsRegion var result AwsRegion - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/backend_base_compare_test.go b/models/backend_base_compare_test.go index 2ac4d79e..6a3a4c29 100644 --- a/models/backend_base_compare_test.go +++ b/models/backend_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestBackendBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendBase var result BackendBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestBackendBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendBase var result BackendBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -131,7 +132,7 @@ func TestBackendBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendBase var result BackendBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -173,11 +174,11 @@ func TestBackendBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendBase var result BackendBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -229,7 +230,7 @@ func TestBackendForcePersistEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendForcePersist var result BackendForcePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -271,11 +272,11 @@ func TestBackendForcePersistEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendForcePersist var result BackendForcePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -308,7 +309,7 @@ func TestBackendForcePersistDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendForcePersist var result BackendForcePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -350,11 +351,11 @@ func TestBackendForcePersistDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendForcePersist var result BackendForcePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -387,7 +388,7 @@ func TestForcePersistEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ForcePersist var result ForcePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -429,11 +430,11 @@ func TestForcePersistEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ForcePersist var result ForcePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -466,7 +467,7 @@ func TestForcePersistDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ForcePersist var result ForcePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -508,11 +509,11 @@ func TestForcePersistDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ForcePersist var result ForcePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -545,7 +546,7 @@ func TestBackendIgnorePersistEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendIgnorePersist var result BackendIgnorePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -587,11 +588,11 @@ func TestBackendIgnorePersistEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendIgnorePersist var result BackendIgnorePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -624,7 +625,7 @@ func TestBackendIgnorePersistDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendIgnorePersist var result BackendIgnorePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -666,11 +667,11 @@ func TestBackendIgnorePersistDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendIgnorePersist var result BackendIgnorePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -703,7 +704,7 @@ func TestIgnorePersistEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample IgnorePersist var result IgnorePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -745,11 +746,11 @@ func TestIgnorePersistEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample IgnorePersist var result IgnorePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -782,7 +783,7 @@ func TestIgnorePersistDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample IgnorePersist var result IgnorePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -824,11 +825,11 @@ func TestIgnorePersistDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample IgnorePersist var result IgnorePersist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/backend_compare_test.go b/models/backend_compare_test.go index bff8d2a8..2b199038 100644 --- a/models/backend_compare_test.go +++ b/models/backend_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestBackendEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Backend var result Backend - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestBackendEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Backend var result Backend - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestBackendDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Backend var result Backend - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestBackendDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Backend var result Backend - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/backend_switching_rule_compare_test.go b/models/backend_switching_rule_compare_test.go index 6f3f94b9..e80a7766 100644 --- a/models/backend_switching_rule_compare_test.go +++ b/models/backend_switching_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestBackendSwitchingRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendSwitchingRule var result BackendSwitchingRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestBackendSwitchingRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendSwitchingRule var result BackendSwitchingRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestBackendSwitchingRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendSwitchingRule var result BackendSwitchingRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestBackendSwitchingRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BackendSwitchingRule var result BackendSwitchingRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/balance_compare_test.go b/models/balance_compare_test.go index f779c9ed..a011918e 100644 --- a/models/balance_compare_test.go +++ b/models/balance_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestBalanceEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Balance var result Balance - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestBalanceEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Balance var result Balance - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -120,7 +121,7 @@ func TestBalanceDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Balance var result Balance - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -162,11 +163,11 @@ func TestBalanceDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Balance var result Balance - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/bind_compare_test.go b/models/bind_compare_test.go index 8533aed9..62d11a84 100644 --- a/models/bind_compare_test.go +++ b/models/bind_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestBindEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Bind var result Bind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestBindEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Bind var result Bind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestBindDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Bind var result Bind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestBindDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Bind var result Bind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/bind_params_compare_test.go b/models/bind_params_compare_test.go index cb2084b8..12cf7392 100644 --- a/models/bind_params_compare_test.go +++ b/models/bind_params_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestBindParamsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample BindParams var result BindParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestBindParamsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BindParams var result BindParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -144,7 +145,7 @@ func TestBindParamsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample BindParams var result BindParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -186,11 +187,11 @@ func TestBindParamsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample BindParams var result BindParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/cache_compare_test.go b/models/cache_compare_test.go index 42080847..6817eb71 100644 --- a/models/cache_compare_test.go +++ b/models/cache_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestCacheEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Cache var result Cache - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestCacheEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Cache var result Cache - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -117,7 +118,7 @@ func TestCacheDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Cache var result Cache - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -159,11 +160,11 @@ func TestCacheDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Cache var result Cache - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/capture_compare_test.go b/models/capture_compare_test.go index 83e2d498..4f7f7d2a 100644 --- a/models/capture_compare_test.go +++ b/models/capture_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestCaptureEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Capture var result Capture - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestCaptureEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Capture var result Capture - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestCaptureDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Capture var result Capture - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestCaptureDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Capture var result Capture - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/cluster_settings_compare_test.go b/models/cluster_settings_compare_test.go index e2f56318..ecd27850 100644 --- a/models/cluster_settings_compare_test.go +++ b/models/cluster_settings_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestClusterSettingsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterSettings var result ClusterSettings - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestClusterSettingsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterSettings var result ClusterSettings - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestClusterSettingsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterSettings var result ClusterSettings - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestClusterSettingsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterSettings var result ClusterSettings - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -191,7 +192,7 @@ func TestClusterSettingsClusterEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterSettingsCluster var result ClusterSettingsCluster - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -233,11 +234,11 @@ func TestClusterSettingsClusterEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterSettingsCluster var result ClusterSettingsCluster - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -271,7 +272,7 @@ func TestClusterSettingsClusterDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterSettingsCluster var result ClusterSettingsCluster - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -313,11 +314,11 @@ func TestClusterSettingsClusterDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterSettingsCluster var result ClusterSettingsCluster - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -351,7 +352,7 @@ func TestClusterLogTargetEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterLogTarget var result ClusterLogTarget - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -393,11 +394,11 @@ func TestClusterLogTargetEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterLogTarget var result ClusterLogTarget - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -431,7 +432,7 @@ func TestClusterLogTargetDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterLogTarget var result ClusterLogTarget - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -473,11 +474,11 @@ func TestClusterLogTargetDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ClusterLogTarget var result ClusterLogTarget - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/compression_compare_test.go b/models/compression_compare_test.go index d80f5711..4baa7c33 100644 --- a/models/compression_compare_test.go +++ b/models/compression_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestCompressionEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Compression var result Compression - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestCompressionEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Compression var result Compression - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestCompressionDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Compression var result Compression - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestCompressionDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Compression var result Compression - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/config_stick_table_compare_test.go b/models/config_stick_table_compare_test.go index f8730728..a4f975ec 100644 --- a/models/config_stick_table_compare_test.go +++ b/models/config_stick_table_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestConfigStickTableEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ConfigStickTable var result ConfigStickTable - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestConfigStickTableEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ConfigStickTable var result ConfigStickTable - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -116,7 +117,7 @@ func TestConfigStickTableDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ConfigStickTable var result ConfigStickTable - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -158,11 +159,11 @@ func TestConfigStickTableDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ConfigStickTable var result ConfigStickTable - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/consul_compare_test.go b/models/consul_compare_test.go index a665d215..e021d911 100644 --- a/models/consul_compare_test.go +++ b/models/consul_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestConsulEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Consul var result Consul - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestConsulEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Consul var result Consul - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -118,7 +119,7 @@ func TestConsulDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Consul var result Consul - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -160,11 +161,11 @@ func TestConsulDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Consul var result Consul - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/cookie_compare_test.go b/models/cookie_compare_test.go index ee021d49..225004ed 100644 --- a/models/cookie_compare_test.go +++ b/models/cookie_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestCookieEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Cookie var result Cookie - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestCookieEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Cookie var result Cookie - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -121,7 +122,7 @@ func TestCookieDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Cookie var result Cookie - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -163,11 +164,11 @@ func TestCookieDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Cookie var result Cookie - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -209,7 +210,7 @@ func TestAttrEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Attr var result Attr - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -251,11 +252,11 @@ func TestAttrEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Attr var result Attr - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -288,7 +289,7 @@ func TestAttrDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Attr var result Attr - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -330,11 +331,11 @@ func TestAttrDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Attr var result Attr - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -367,7 +368,7 @@ func TestDomainEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Domain var result Domain - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -409,11 +410,11 @@ func TestDomainEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Domain var result Domain - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -446,7 +447,7 @@ func TestDomainDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Domain var result Domain - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -488,11 +489,11 @@ func TestDomainDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Domain var result Domain - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/crt_load_compare_test.go b/models/crt_load_compare_test.go index bb078af6..f1ab6c7c 100644 --- a/models/crt_load_compare_test.go +++ b/models/crt_load_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestCrtLoadEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample CrtLoad var result CrtLoad - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestCrtLoadEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample CrtLoad var result CrtLoad - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestCrtLoadDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample CrtLoad var result CrtLoad - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestCrtLoadDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample CrtLoad var result CrtLoad - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/crt_store_compare_test.go b/models/crt_store_compare_test.go index 8bc90286..bc29569c 100644 --- a/models/crt_store_compare_test.go +++ b/models/crt_store_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestCrtStoreEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample CrtStore var result CrtStore - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestCrtStoreEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample CrtStore var result CrtStore - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestCrtStoreDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample CrtStore var result CrtStore - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestCrtStoreDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample CrtStore var result CrtStore - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/debug_options_compare_test.go b/models/debug_options_compare_test.go index 0bcf34f8..ce7ea11b 100644 --- a/models/debug_options_compare_test.go +++ b/models/debug_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestDebugOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample DebugOptions var result DebugOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestDebugOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DebugOptions var result DebugOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -115,7 +116,7 @@ func TestDebugOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample DebugOptions var result DebugOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -157,11 +158,11 @@ func TestDebugOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DebugOptions var result DebugOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/default_bind_compare_test.go b/models/default_bind_compare_test.go index 59101434..300d020e 100644 --- a/models/default_bind_compare_test.go +++ b/models/default_bind_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestDefaultBindEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultBind var result DefaultBind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestDefaultBindEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultBind var result DefaultBind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestDefaultBindDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultBind var result DefaultBind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestDefaultBindDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultBind var result DefaultBind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/default_server_compare_test.go b/models/default_server_compare_test.go index c97a8fac..cf8a1cd7 100644 --- a/models/default_server_compare_test.go +++ b/models/default_server_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestDefaultServerEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultServer var result DefaultServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestDefaultServerEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultServer var result DefaultServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestDefaultServerDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultServer var result DefaultServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestDefaultServerDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultServer var result DefaultServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/defaults_base_compare_test.go b/models/defaults_base_compare_test.go index 783065c9..bba78391 100644 --- a/models/defaults_base_compare_test.go +++ b/models/defaults_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestDefaultsBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultsBase var result DefaultsBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestDefaultsBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultsBase var result DefaultsBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -140,7 +141,7 @@ func TestDefaultsBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultsBase var result DefaultsBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -182,11 +183,11 @@ func TestDefaultsBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DefaultsBase var result DefaultsBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/defaults_compare_test.go b/models/defaults_compare_test.go index bcd9cb1c..0c3d2cd2 100644 --- a/models/defaults_compare_test.go +++ b/models/defaults_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestDefaultsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Defaults var result Defaults - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestDefaultsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Defaults var result Defaults - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestDefaultsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Defaults var result Defaults - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestDefaultsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Defaults var result Defaults - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/device_atlas_options_compare_test.go b/models/device_atlas_options_compare_test.go index c83780d6..01b9027a 100644 --- a/models/device_atlas_options_compare_test.go +++ b/models/device_atlas_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestDeviceAtlasOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample DeviceAtlasOptions var result DeviceAtlasOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestDeviceAtlasOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DeviceAtlasOptions var result DeviceAtlasOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestDeviceAtlasOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample DeviceAtlasOptions var result DeviceAtlasOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestDeviceAtlasOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DeviceAtlasOptions var result DeviceAtlasOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/dgram_bind_compare_test.go b/models/dgram_bind_compare_test.go index 2e8d6fd9..f02ddf9b 100644 --- a/models/dgram_bind_compare_test.go +++ b/models/dgram_bind_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestDgramBindEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample DgramBind var result DgramBind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestDgramBindEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DgramBind var result DgramBind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -115,7 +116,7 @@ func TestDgramBindDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample DgramBind var result DgramBind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -157,11 +158,11 @@ func TestDgramBindDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample DgramBind var result DgramBind - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/email_alert_compare_test.go b/models/email_alert_compare_test.go index 98fd94f2..429fe466 100644 --- a/models/email_alert_compare_test.go +++ b/models/email_alert_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestEmailAlertEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample EmailAlert var result EmailAlert - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestEmailAlertEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample EmailAlert var result EmailAlert - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestEmailAlertDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample EmailAlert var result EmailAlert - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestEmailAlertDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample EmailAlert var result EmailAlert - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/endpoint_compare_test.go b/models/endpoint_compare_test.go index 13233e1d..966ca470 100644 --- a/models/endpoint_compare_test.go +++ b/models/endpoint_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestEndpointEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Endpoint var result Endpoint - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestEndpointEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Endpoint var result Endpoint - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestEndpointDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Endpoint var result Endpoint - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestEndpointDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Endpoint var result Endpoint - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/environment_options_compare_test.go b/models/environment_options_compare_test.go index 08aad481..52a9582a 100644 --- a/models/environment_options_compare_test.go +++ b/models/environment_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestEnvironmentOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample EnvironmentOptions var result EnvironmentOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestEnvironmentOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample EnvironmentOptions var result EnvironmentOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestEnvironmentOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample EnvironmentOptions var result EnvironmentOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestEnvironmentOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample EnvironmentOptions var result EnvironmentOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -191,7 +192,7 @@ func TestPresetEnvEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample PresetEnv var result PresetEnv - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -233,11 +234,11 @@ func TestPresetEnvEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PresetEnv var result PresetEnv - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -270,7 +271,7 @@ func TestPresetEnvDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample PresetEnv var result PresetEnv - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -312,11 +313,11 @@ func TestPresetEnvDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PresetEnv var result PresetEnv - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -349,7 +350,7 @@ func TestSetEnvEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SetEnv var result SetEnv - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -391,11 +392,11 @@ func TestSetEnvEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SetEnv var result SetEnv - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -428,7 +429,7 @@ func TestSetEnvDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SetEnv var result SetEnv - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -470,11 +471,11 @@ func TestSetEnvDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SetEnv var result SetEnv - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/error_compare_test.go b/models/error_compare_test.go index 077e25f0..13519f11 100644 --- a/models/error_compare_test.go +++ b/models/error_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestErrorEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Error var result Error - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestErrorEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Error var result Error - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestErrorDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Error var result Error - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestErrorDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Error var result Error - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/errorfile_compare_test.go b/models/errorfile_compare_test.go index 20d1b429..1132452b 100644 --- a/models/errorfile_compare_test.go +++ b/models/errorfile_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestErrorfileEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorfile var result Errorfile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestErrorfileEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorfile var result Errorfile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestErrorfileDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorfile var result Errorfile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestErrorfileDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorfile var result Errorfile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/errorfiles_compare_test.go b/models/errorfiles_compare_test.go index df382146..d0d28e35 100644 --- a/models/errorfiles_compare_test.go +++ b/models/errorfiles_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestErrorfilesEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorfiles var result Errorfiles - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestErrorfilesEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorfiles var result Errorfiles - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestErrorfilesDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorfiles var result Errorfiles - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestErrorfilesDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorfiles var result Errorfiles - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/errorloc_compare_test.go b/models/errorloc_compare_test.go index 3d8750c0..ced21595 100644 --- a/models/errorloc_compare_test.go +++ b/models/errorloc_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestErrorlocEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorloc var result Errorloc - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestErrorlocEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorloc var result Errorloc - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestErrorlocDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorloc var result Errorloc - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestErrorlocDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Errorloc var result Errorloc - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/fcgi_app_base_compare_test.go b/models/fcgi_app_base_compare_test.go index 0fca117d..ae6d51ae 100644 --- a/models/fcgi_app_base_compare_test.go +++ b/models/fcgi_app_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestFCGIAppBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIAppBase var result FCGIAppBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestFCGIAppBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIAppBase var result FCGIAppBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestFCGIAppBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIAppBase var result FCGIAppBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestFCGIAppBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIAppBase var result FCGIAppBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/fcgi_app_compare_test.go b/models/fcgi_app_compare_test.go index e6e880f6..ce273ff2 100644 --- a/models/fcgi_app_compare_test.go +++ b/models/fcgi_app_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestFCGIAppEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIApp var result FCGIApp - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestFCGIAppEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIApp var result FCGIApp - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestFCGIAppDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIApp var result FCGIApp - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestFCGIAppDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIApp var result FCGIApp - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/fcgi_log_stderr_compare_test.go b/models/fcgi_log_stderr_compare_test.go index 27a1a49f..54acfb17 100644 --- a/models/fcgi_log_stderr_compare_test.go +++ b/models/fcgi_log_stderr_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestFCGILogStderrEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGILogStderr var result FCGILogStderr - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestFCGILogStderrEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGILogStderr var result FCGILogStderr - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestFCGILogStderrDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGILogStderr var result FCGILogStderr - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestFCGILogStderrDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGILogStderr var result FCGILogStderr - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -195,7 +196,7 @@ func TestFCGILogStderrSampleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGILogStderrSample var result FCGILogStderrSample - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -237,11 +238,11 @@ func TestFCGILogStderrSampleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGILogStderrSample var result FCGILogStderrSample - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -275,7 +276,7 @@ func TestFCGILogStderrSampleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGILogStderrSample var result FCGILogStderrSample - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -317,11 +318,11 @@ func TestFCGILogStderrSampleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGILogStderrSample var result FCGILogStderrSample - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/fcgi_pass_header_compare_test.go b/models/fcgi_pass_header_compare_test.go index 44660d3c..a5d8c7ca 100644 --- a/models/fcgi_pass_header_compare_test.go +++ b/models/fcgi_pass_header_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestFCGIPassHeaderEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIPassHeader var result FCGIPassHeader - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestFCGIPassHeaderEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIPassHeader var result FCGIPassHeader - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestFCGIPassHeaderDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIPassHeader var result FCGIPassHeader - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestFCGIPassHeaderDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGIPassHeader var result FCGIPassHeader - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/fcgi_set_param_compare_test.go b/models/fcgi_set_param_compare_test.go index 387f676f..7a8466f9 100644 --- a/models/fcgi_set_param_compare_test.go +++ b/models/fcgi_set_param_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestFCGISetParamEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGISetParam var result FCGISetParam - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestFCGISetParamEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGISetParam var result FCGISetParam - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestFCGISetParamDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGISetParam var result FCGISetParam - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestFCGISetParamDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FCGISetParam var result FCGISetParam - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/fifty_one_degrees_options_compare_test.go b/models/fifty_one_degrees_options_compare_test.go index b3d58837..fb17f2ad 100644 --- a/models/fifty_one_degrees_options_compare_test.go +++ b/models/fifty_one_degrees_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestFiftyOneDegreesOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample FiftyOneDegreesOptions var result FiftyOneDegreesOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestFiftyOneDegreesOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FiftyOneDegreesOptions var result FiftyOneDegreesOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestFiftyOneDegreesOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample FiftyOneDegreesOptions var result FiftyOneDegreesOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestFiftyOneDegreesOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FiftyOneDegreesOptions var result FiftyOneDegreesOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/filter_compare_test.go b/models/filter_compare_test.go index 6ebbd0a9..e1c5bd4a 100644 --- a/models/filter_compare_test.go +++ b/models/filter_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestFilterEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Filter var result Filter - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestFilterEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Filter var result Filter - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -119,7 +120,7 @@ func TestFilterDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Filter var result Filter - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -161,11 +162,11 @@ func TestFilterDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Filter var result Filter - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/forwardfor_compare_test.go b/models/forwardfor_compare_test.go index bbf6dcae..0e00abcc 100644 --- a/models/forwardfor_compare_test.go +++ b/models/forwardfor_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestForwardforEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Forwardfor var result Forwardfor - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestForwardforEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Forwardfor var result Forwardfor - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestForwardforDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Forwardfor var result Forwardfor - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestForwardforDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Forwardfor var result Forwardfor - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/frontend_base_compare_test.go b/models/frontend_base_compare_test.go index 0c53b822..d3df2137 100644 --- a/models/frontend_base_compare_test.go +++ b/models/frontend_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestFrontendBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample FrontendBase var result FrontendBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestFrontendBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FrontendBase var result FrontendBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -128,7 +129,7 @@ func TestFrontendBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample FrontendBase var result FrontendBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -170,11 +171,11 @@ func TestFrontendBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample FrontendBase var result FrontendBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/frontend_compare_test.go b/models/frontend_compare_test.go index 5acfd924..3597b168 100644 --- a/models/frontend_compare_test.go +++ b/models/frontend_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestFrontendEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Frontend var result Frontend - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestFrontendEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Frontend var result Frontend - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestFrontendDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Frontend var result Frontend - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestFrontendDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Frontend var result Frontend - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/general_file_compare_test.go b/models/general_file_compare_test.go index 1aaba66d..84c751b3 100644 --- a/models/general_file_compare_test.go +++ b/models/general_file_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestGeneralFileEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample GeneralFile var result GeneralFile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestGeneralFileEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GeneralFile var result GeneralFile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestGeneralFileDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample GeneralFile var result GeneralFile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestGeneralFileDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GeneralFile var result GeneralFile - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/global_base_compare_test.go b/models/global_base_compare_test.go index acd19575..4c96cbc2 100644 --- a/models/global_base_compare_test.go +++ b/models/global_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestGlobalBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalBase var result GlobalBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestGlobalBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalBase var result GlobalBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -138,7 +139,7 @@ func TestGlobalBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalBase var result GlobalBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -180,11 +181,11 @@ func TestGlobalBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalBase var result GlobalBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -243,7 +244,7 @@ func TestCPUMapEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample CPUMap var result CPUMap - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -285,11 +286,11 @@ func TestCPUMapEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample CPUMap var result CPUMap - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -322,7 +323,7 @@ func TestCPUMapDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample CPUMap var result CPUMap - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -364,11 +365,11 @@ func TestCPUMapDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample CPUMap var result CPUMap - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -401,7 +402,7 @@ func TestGlobalDefaultPathEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalDefaultPath var result GlobalDefaultPath - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -443,11 +444,11 @@ func TestGlobalDefaultPathEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalDefaultPath var result GlobalDefaultPath - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -480,7 +481,7 @@ func TestGlobalDefaultPathDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalDefaultPath var result GlobalDefaultPath - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -522,11 +523,11 @@ func TestGlobalDefaultPathDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalDefaultPath var result GlobalDefaultPath - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -559,7 +560,7 @@ func TestH1CaseAdjustEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample H1CaseAdjust var result H1CaseAdjust - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -601,11 +602,11 @@ func TestH1CaseAdjustEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample H1CaseAdjust var result H1CaseAdjust - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -638,7 +639,7 @@ func TestH1CaseAdjustDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample H1CaseAdjust var result H1CaseAdjust - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -680,11 +681,11 @@ func TestH1CaseAdjustDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample H1CaseAdjust var result H1CaseAdjust - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -717,7 +718,7 @@ func TestGlobalHardenEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalHarden var result GlobalHarden - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -759,11 +760,11 @@ func TestGlobalHardenEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalHarden var result GlobalHarden - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -796,7 +797,7 @@ func TestGlobalHardenDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalHarden var result GlobalHarden - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -838,11 +839,11 @@ func TestGlobalHardenDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalHarden var result GlobalHarden - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -875,7 +876,7 @@ func TestGlobalHardenRejectPrivilegedPortsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalHardenRejectPrivilegedPorts var result GlobalHardenRejectPrivilegedPorts - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -917,11 +918,11 @@ func TestGlobalHardenRejectPrivilegedPortsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalHardenRejectPrivilegedPorts var result GlobalHardenRejectPrivilegedPorts - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -954,7 +955,7 @@ func TestGlobalHardenRejectPrivilegedPortsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalHardenRejectPrivilegedPorts var result GlobalHardenRejectPrivilegedPorts - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -996,11 +997,11 @@ func TestGlobalHardenRejectPrivilegedPortsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalHardenRejectPrivilegedPorts var result GlobalHardenRejectPrivilegedPorts - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1033,7 +1034,7 @@ func TestGlobalLogSendHostnameEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalLogSendHostname var result GlobalLogSendHostname - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1075,11 +1076,11 @@ func TestGlobalLogSendHostnameEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalLogSendHostname var result GlobalLogSendHostname - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1112,7 +1113,7 @@ func TestGlobalLogSendHostnameDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalLogSendHostname var result GlobalLogSendHostname - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1154,11 +1155,11 @@ func TestGlobalLogSendHostnameDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample GlobalLogSendHostname var result GlobalLogSendHostname - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1191,7 +1192,7 @@ func TestRuntimeAPIEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeAPI var result RuntimeAPI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1233,11 +1234,11 @@ func TestRuntimeAPIEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeAPI var result RuntimeAPI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1270,7 +1271,7 @@ func TestRuntimeAPIDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeAPI var result RuntimeAPI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1312,11 +1313,11 @@ func TestRuntimeAPIDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeAPI var result RuntimeAPI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1349,7 +1350,7 @@ func TestSetVarFmtEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SetVarFmt var result SetVarFmt - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1391,11 +1392,11 @@ func TestSetVarFmtEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SetVarFmt var result SetVarFmt - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1428,7 +1429,7 @@ func TestSetVarFmtDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SetVarFmt var result SetVarFmt - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1470,11 +1471,11 @@ func TestSetVarFmtDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SetVarFmt var result SetVarFmt - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1507,7 +1508,7 @@ func TestSetVarEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SetVar var result SetVar - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1549,11 +1550,11 @@ func TestSetVarEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SetVar var result SetVar - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1586,7 +1587,7 @@ func TestSetVarDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SetVar var result SetVar - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1628,11 +1629,11 @@ func TestSetVarDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SetVar var result SetVar - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1665,7 +1666,7 @@ func TestThreadGroupEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ThreadGroup var result ThreadGroup - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1707,11 +1708,11 @@ func TestThreadGroupEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ThreadGroup var result ThreadGroup - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1744,7 +1745,7 @@ func TestThreadGroupDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ThreadGroup var result ThreadGroup - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -1786,11 +1787,11 @@ func TestThreadGroupDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ThreadGroup var result ThreadGroup - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/global_compare_test.go b/models/global_compare_test.go index 3bbd7f87..cee8dc6a 100644 --- a/models/global_compare_test.go +++ b/models/global_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestGlobalEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Global var result Global - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestGlobalEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Global var result Global - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestGlobalDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Global var result Global - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestGlobalDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Global var result Global - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/group_compare_test.go b/models/group_compare_test.go index acd1add5..87dae157 100644 --- a/models/group_compare_test.go +++ b/models/group_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestGroupEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Group var result Group - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestGroupEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Group var result Group - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestGroupDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Group var result Group - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestGroupDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Group var result Group - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/hash_type_compare_test.go b/models/hash_type_compare_test.go index 06613b38..58a8c2db 100644 --- a/models/hash_type_compare_test.go +++ b/models/hash_type_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHashTypeEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HashType var result HashType - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHashTypeEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HashType var result HashType - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestHashTypeDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HashType var result HashType - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestHashTypeDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HashType var result HashType - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/health_compare_test.go b/models/health_compare_test.go index cbd077ba..e82e306a 100644 --- a/models/health_compare_test.go +++ b/models/health_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHealthEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Health var result Health - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHealthEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Health var result Health - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestHealthDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Health var result Health - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestHealthDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Health var result Health - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/http_after_response_rule_compare_test.go b/models/http_after_response_rule_compare_test.go index b23a1114..920a178b 100644 --- a/models/http_after_response_rule_compare_test.go +++ b/models/http_after_response_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHTTPAfterResponseRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPAfterResponseRule var result HTTPAfterResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHTTPAfterResponseRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPAfterResponseRule var result HTTPAfterResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -118,7 +119,7 @@ func TestHTTPAfterResponseRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPAfterResponseRule var result HTTPAfterResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -160,11 +161,11 @@ func TestHTTPAfterResponseRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPAfterResponseRule var result HTTPAfterResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/http_check_compare_test.go b/models/http_check_compare_test.go index ffac1bdb..b04865b5 100644 --- a/models/http_check_compare_test.go +++ b/models/http_check_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHTTPCheckEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPCheck var result HTTPCheck - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHTTPCheckEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPCheck var result HTTPCheck - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -120,7 +121,7 @@ func TestHTTPCheckDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPCheck var result HTTPCheck - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -162,11 +163,11 @@ func TestHTTPCheckDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPCheck var result HTTPCheck - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/http_client_options_compare_test.go b/models/http_client_options_compare_test.go index 4cf7ed24..6d670a57 100644 --- a/models/http_client_options_compare_test.go +++ b/models/http_client_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHTTPClientOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPClientOptions var result HTTPClientOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHTTPClientOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPClientOptions var result HTTPClientOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestHTTPClientOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPClientOptions var result HTTPClientOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestHTTPClientOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPClientOptions var result HTTPClientOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/http_codes_compare_test.go b/models/http_codes_compare_test.go index 6214f685..e87de1ad 100644 --- a/models/http_codes_compare_test.go +++ b/models/http_codes_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHTTPCodesEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPCodes var result HTTPCodes - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHTTPCodesEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPCodes var result HTTPCodes - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestHTTPCodesDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPCodes var result HTTPCodes - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestHTTPCodesDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPCodes var result HTTPCodes - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/http_error_rule_compare_test.go b/models/http_error_rule_compare_test.go index 42c27859..893ef449 100644 --- a/models/http_error_rule_compare_test.go +++ b/models/http_error_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHTTPErrorRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPErrorRule var result HTTPErrorRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHTTPErrorRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPErrorRule var result HTTPErrorRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestHTTPErrorRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPErrorRule var result HTTPErrorRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestHTTPErrorRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPErrorRule var result HTTPErrorRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/http_errors_section_compare_test.go b/models/http_errors_section_compare_test.go index 9f8ad60e..3460cf8a 100644 --- a/models/http_errors_section_compare_test.go +++ b/models/http_errors_section_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHTTPErrorsSectionEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPErrorsSection var result HTTPErrorsSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHTTPErrorsSectionEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPErrorsSection var result HTTPErrorsSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestHTTPErrorsSectionDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPErrorsSection var result HTTPErrorsSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestHTTPErrorsSectionDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPErrorsSection var result HTTPErrorsSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/http_request_rule_compare_test.go b/models/http_request_rule_compare_test.go index 69c31c34..a33ace77 100644 --- a/models/http_request_rule_compare_test.go +++ b/models/http_request_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHTTPRequestRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPRequestRule var result HTTPRequestRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHTTPRequestRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPRequestRule var result HTTPRequestRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -126,7 +127,7 @@ func TestHTTPRequestRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPRequestRule var result HTTPRequestRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -168,11 +169,11 @@ func TestHTTPRequestRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPRequestRule var result HTTPRequestRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/http_response_rule_compare_test.go b/models/http_response_rule_compare_test.go index cc25f9df..74d175bc 100644 --- a/models/http_response_rule_compare_test.go +++ b/models/http_response_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHTTPResponseRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPResponseRule var result HTTPResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHTTPResponseRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPResponseRule var result HTTPResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -124,7 +125,7 @@ func TestHTTPResponseRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPResponseRule var result HTTPResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -166,11 +167,11 @@ func TestHTTPResponseRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HTTPResponseRule var result HTTPResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/httpchk_params_compare_test.go b/models/httpchk_params_compare_test.go index 5c962367..2a607ba7 100644 --- a/models/httpchk_params_compare_test.go +++ b/models/httpchk_params_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestHttpchkParamsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample HttpchkParams var result HttpchkParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestHttpchkParamsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HttpchkParams var result HttpchkParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestHttpchkParamsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample HttpchkParams var result HttpchkParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestHttpchkParamsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample HttpchkParams var result HttpchkParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/info_compare_test.go b/models/info_compare_test.go index 5655c34e..c164f440 100644 --- a/models/info_compare_test.go +++ b/models/info_compare_test.go @@ -24,6 +24,7 @@ import ( "time" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" "github.com/go-openapi/strfmt" jsoniter "github.com/json-iterator/go" @@ -36,7 +37,7 @@ func TestInfoEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Info var result Info - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -78,11 +79,11 @@ func TestInfoEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Info var result Info - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -115,7 +116,7 @@ func TestInfoDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Info var result Info - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -157,11 +158,11 @@ func TestInfoDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Info var result Info - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -194,7 +195,7 @@ func TestInfoAPIEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoAPI var result InfoAPI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -236,11 +237,11 @@ func TestInfoAPIEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoAPI var result InfoAPI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -274,7 +275,7 @@ func TestInfoAPIDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoAPI var result InfoAPI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -316,11 +317,11 @@ func TestInfoAPIDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoAPI var result InfoAPI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -354,7 +355,7 @@ func TestInfoSystemEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystem var result InfoSystem - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -396,11 +397,11 @@ func TestInfoSystemEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystem var result InfoSystem - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -435,7 +436,7 @@ func TestInfoSystemDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystem var result InfoSystem - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -477,11 +478,11 @@ func TestInfoSystemDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystem var result InfoSystem - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -516,7 +517,7 @@ func TestInfoSystemCPUInfoEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystemCPUInfo var result InfoSystemCPUInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -558,11 +559,11 @@ func TestInfoSystemCPUInfoEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystemCPUInfo var result InfoSystemCPUInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -596,7 +597,7 @@ func TestInfoSystemCPUInfoDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystemCPUInfo var result InfoSystemCPUInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -638,11 +639,11 @@ func TestInfoSystemCPUInfoDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystemCPUInfo var result InfoSystemCPUInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -676,7 +677,7 @@ func TestInfoSystemMemInfoEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystemMemInfo var result InfoSystemMemInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -718,11 +719,11 @@ func TestInfoSystemMemInfoEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystemMemInfo var result InfoSystemMemInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -758,7 +759,7 @@ func TestInfoSystemMemInfoDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystemMemInfo var result InfoSystemMemInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -800,11 +801,11 @@ func TestInfoSystemMemInfoDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample InfoSystemMemInfo var result InfoSystemMemInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/log_forward_base_compare_test.go b/models/log_forward_base_compare_test.go index a4ff1d95..f9ca5731 100644 --- a/models/log_forward_base_compare_test.go +++ b/models/log_forward_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestLogForwardBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample LogForwardBase var result LogForwardBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestLogForwardBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LogForwardBase var result LogForwardBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -115,7 +116,7 @@ func TestLogForwardBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample LogForwardBase var result LogForwardBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -157,11 +158,11 @@ func TestLogForwardBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LogForwardBase var result LogForwardBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/log_forward_compare_test.go b/models/log_forward_compare_test.go index cd5766c7..bfaa84c5 100644 --- a/models/log_forward_compare_test.go +++ b/models/log_forward_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestLogForwardEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample LogForward var result LogForward - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestLogForwardEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LogForward var result LogForward - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestLogForwardDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample LogForward var result LogForward - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestLogForwardDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LogForward var result LogForward - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/log_target_compare_test.go b/models/log_target_compare_test.go index b9acecca..34d10857 100644 --- a/models/log_target_compare_test.go +++ b/models/log_target_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestLogTargetEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample LogTarget var result LogTarget - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestLogTargetEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LogTarget var result LogTarget - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -116,7 +117,7 @@ func TestLogTargetDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample LogTarget var result LogTarget - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -158,11 +159,11 @@ func TestLogTargetDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LogTarget var result LogTarget - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/lua_options_compare_test.go b/models/lua_options_compare_test.go index 92b508a2..6f1cd08d 100644 --- a/models/lua_options_compare_test.go +++ b/models/lua_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestLuaOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaOptions var result LuaOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestLuaOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaOptions var result LuaOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestLuaOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaOptions var result LuaOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestLuaOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaOptions var result LuaOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -191,7 +192,7 @@ func TestLuaLoadEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaLoad var result LuaLoad - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -233,11 +234,11 @@ func TestLuaLoadEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaLoad var result LuaLoad - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -270,7 +271,7 @@ func TestLuaLoadDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaLoad var result LuaLoad - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -312,11 +313,11 @@ func TestLuaLoadDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaLoad var result LuaLoad - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -349,7 +350,7 @@ func TestLuaPrependPathEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaPrependPath var result LuaPrependPath - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -391,11 +392,11 @@ func TestLuaPrependPathEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaPrependPath var result LuaPrependPath - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -428,7 +429,7 @@ func TestLuaPrependPathDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaPrependPath var result LuaPrependPath - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -470,11 +471,11 @@ func TestLuaPrependPathDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample LuaPrependPath var result LuaPrependPath - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/mailer_entry_compare_test.go b/models/mailer_entry_compare_test.go index 2821c10b..b0c000bb 100644 --- a/models/mailer_entry_compare_test.go +++ b/models/mailer_entry_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestMailerEntryEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample MailerEntry var result MailerEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestMailerEntryEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MailerEntry var result MailerEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestMailerEntryDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample MailerEntry var result MailerEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestMailerEntryDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MailerEntry var result MailerEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/mailers_section_base_compare_test.go b/models/mailers_section_base_compare_test.go index 4005dfe6..b46e9769 100644 --- a/models/mailers_section_base_compare_test.go +++ b/models/mailers_section_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestMailersSectionBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample MailersSectionBase var result MailersSectionBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestMailersSectionBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MailersSectionBase var result MailersSectionBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestMailersSectionBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample MailersSectionBase var result MailersSectionBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestMailersSectionBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MailersSectionBase var result MailersSectionBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/mailers_section_compare_test.go b/models/mailers_section_compare_test.go index e93c97ef..ea37d775 100644 --- a/models/mailers_section_compare_test.go +++ b/models/mailers_section_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestMailersSectionEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample MailersSection var result MailersSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestMailersSectionEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MailersSection var result MailersSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestMailersSectionDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample MailersSection var result MailersSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestMailersSectionDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MailersSection var result MailersSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/map_compare_test.go b/models/map_compare_test.go index 32ea2feb..060ad5e2 100644 --- a/models/map_compare_test.go +++ b/models/map_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestMapEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Map var result Map - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestMapEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Map var result Map - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestMapDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Map var result Map - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestMapDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Map var result Map - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/map_entry_compare_test.go b/models/map_entry_compare_test.go index 32313ad3..4e5a805d 100644 --- a/models/map_entry_compare_test.go +++ b/models/map_entry_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestMapEntryEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample MapEntry var result MapEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestMapEntryEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MapEntry var result MapEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestMapEntryDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample MapEntry var result MapEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestMapEntryDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MapEntry var result MapEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/monitor_fail_compare_test.go b/models/monitor_fail_compare_test.go index 9e29511b..5d45ac6f 100644 --- a/models/monitor_fail_compare_test.go +++ b/models/monitor_fail_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestMonitorFailEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample MonitorFail var result MonitorFail - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestMonitorFailEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MonitorFail var result MonitorFail - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestMonitorFailDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample MonitorFail var result MonitorFail - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestMonitorFailDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MonitorFail var result MonitorFail - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/monitor_uri_compare_test.go b/models/monitor_uri_compare_test.go index d1b15af7..633a3cc7 100644 --- a/models/monitor_uri_compare_test.go +++ b/models/monitor_uri_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestMonitorURIEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample MonitorURI var result MonitorURI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestMonitorURIEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MonitorURI var result MonitorURI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestMonitorURIDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample MonitorURI var result MonitorURI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestMonitorURIDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MonitorURI var result MonitorURI - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/mysql_check_params_compare_test.go b/models/mysql_check_params_compare_test.go index 1a7698db..ea20e1e6 100644 --- a/models/mysql_check_params_compare_test.go +++ b/models/mysql_check_params_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestMysqlCheckParamsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample MysqlCheckParams var result MysqlCheckParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestMysqlCheckParamsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MysqlCheckParams var result MysqlCheckParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestMysqlCheckParamsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample MysqlCheckParams var result MysqlCheckParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestMysqlCheckParamsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample MysqlCheckParams var result MysqlCheckParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/nameserver_compare_test.go b/models/nameserver_compare_test.go index f843bb18..5ae50e5b 100644 --- a/models/nameserver_compare_test.go +++ b/models/nameserver_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestNameserverEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Nameserver var result Nameserver - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestNameserverEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Nameserver var result Nameserver - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestNameserverDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Nameserver var result Nameserver - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestNameserverDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Nameserver var result Nameserver - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/native_stat_compare_test.go b/models/native_stat_compare_test.go index 1347c272..adc56287 100644 --- a/models/native_stat_compare_test.go +++ b/models/native_stat_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestNativeStatEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStat var result NativeStat - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestNativeStatEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStat var result NativeStat - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestNativeStatDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStat var result NativeStat - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestNativeStatDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStat var result NativeStat - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/native_stat_stats_compare_test.go b/models/native_stat_stats_compare_test.go index 786caf3e..ed3103fd 100644 --- a/models/native_stat_stats_compare_test.go +++ b/models/native_stat_stats_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestNativeStatStatsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStatStats var result NativeStatStats - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestNativeStatStatsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStatStats var result NativeStatStats - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -179,7 +180,7 @@ func TestNativeStatStatsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStatStats var result NativeStatStats - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -221,11 +222,11 @@ func TestNativeStatStatsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStatStats var result NativeStatStats - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/native_stats_compare_test.go b/models/native_stats_compare_test.go index 95b7c20f..67837f0d 100644 --- a/models/native_stats_compare_test.go +++ b/models/native_stats_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestNativeStatsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStats var result NativeStats - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestNativeStatsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStats var result NativeStats - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestNativeStatsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStats var result NativeStats - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestNativeStatsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample NativeStats var result NativeStats - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/ocsp_update_options_compare_test.go b/models/ocsp_update_options_compare_test.go index 7756eb35..4a05a509 100644 --- a/models/ocsp_update_options_compare_test.go +++ b/models/ocsp_update_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestOcspUpdateOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample OcspUpdateOptions var result OcspUpdateOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestOcspUpdateOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample OcspUpdateOptions var result OcspUpdateOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -115,7 +116,7 @@ func TestOcspUpdateOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample OcspUpdateOptions var result OcspUpdateOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -157,11 +158,11 @@ func TestOcspUpdateOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample OcspUpdateOptions var result OcspUpdateOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -197,7 +198,7 @@ func TestOcspUpdateOptionsHttpproxyEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample OcspUpdateOptionsHttpproxy var result OcspUpdateOptionsHttpproxy - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -239,11 +240,11 @@ func TestOcspUpdateOptionsHttpproxyEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample OcspUpdateOptionsHttpproxy var result OcspUpdateOptionsHttpproxy - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -277,7 +278,7 @@ func TestOcspUpdateOptionsHttpproxyDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample OcspUpdateOptionsHttpproxy var result OcspUpdateOptionsHttpproxy - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -319,11 +320,11 @@ func TestOcspUpdateOptionsHttpproxyDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample OcspUpdateOptionsHttpproxy var result OcspUpdateOptionsHttpproxy - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/originalto_compare_test.go b/models/originalto_compare_test.go index f43f9c21..0aa1fcea 100644 --- a/models/originalto_compare_test.go +++ b/models/originalto_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestOriginaltoEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Originalto var result Originalto - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestOriginaltoEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Originalto var result Originalto - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestOriginaltoDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Originalto var result Originalto - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestOriginaltoDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Originalto var result Originalto - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/peer_entry_compare_test.go b/models/peer_entry_compare_test.go index 59768916..d2929678 100644 --- a/models/peer_entry_compare_test.go +++ b/models/peer_entry_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestPeerEntryEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerEntry var result PeerEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestPeerEntryEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerEntry var result PeerEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestPeerEntryDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerEntry var result PeerEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestPeerEntryDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerEntry var result PeerEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/peer_section_base_compare_test.go b/models/peer_section_base_compare_test.go index b4e8be98..fa846628 100644 --- a/models/peer_section_base_compare_test.go +++ b/models/peer_section_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestPeerSectionBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerSectionBase var result PeerSectionBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestPeerSectionBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerSectionBase var result PeerSectionBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -115,7 +116,7 @@ func TestPeerSectionBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerSectionBase var result PeerSectionBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -157,11 +158,11 @@ func TestPeerSectionBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerSectionBase var result PeerSectionBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/peer_section_compare_test.go b/models/peer_section_compare_test.go index 7d22426d..b025edbf 100644 --- a/models/peer_section_compare_test.go +++ b/models/peer_section_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestPeerSectionEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerSection var result PeerSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestPeerSectionEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerSection var result PeerSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestPeerSectionDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerSection var result PeerSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestPeerSectionDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PeerSection var result PeerSection - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/performance_options_compare_test.go b/models/performance_options_compare_test.go index 4ae640c4..c64a24ca 100644 --- a/models/performance_options_compare_test.go +++ b/models/performance_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestPerformanceOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample PerformanceOptions var result PerformanceOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestPerformanceOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PerformanceOptions var result PerformanceOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -130,7 +131,7 @@ func TestPerformanceOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample PerformanceOptions var result PerformanceOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -172,11 +173,11 @@ func TestPerformanceOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PerformanceOptions var result PerformanceOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/persist_rule_compare_test.go b/models/persist_rule_compare_test.go index 644b7c0f..795017a3 100644 --- a/models/persist_rule_compare_test.go +++ b/models/persist_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestPersistRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample PersistRule var result PersistRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestPersistRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PersistRule var result PersistRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestPersistRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample PersistRule var result PersistRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestPersistRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PersistRule var result PersistRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/pgsql_check_params_compare_test.go b/models/pgsql_check_params_compare_test.go index dfb56eb5..9a7af666 100644 --- a/models/pgsql_check_params_compare_test.go +++ b/models/pgsql_check_params_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestPgsqlCheckParamsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample PgsqlCheckParams var result PgsqlCheckParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestPgsqlCheckParamsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PgsqlCheckParams var result PgsqlCheckParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestPgsqlCheckParamsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample PgsqlCheckParams var result PgsqlCheckParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestPgsqlCheckParamsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample PgsqlCheckParams var result PgsqlCheckParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/process_info_compare_test.go b/models/process_info_compare_test.go index bc0c5f0d..7999a24a 100644 --- a/models/process_info_compare_test.go +++ b/models/process_info_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestProcessInfoEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ProcessInfo var result ProcessInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestProcessInfoEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ProcessInfo var result ProcessInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestProcessInfoDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ProcessInfo var result ProcessInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestProcessInfoDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ProcessInfo var result ProcessInfo - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/process_info_item_compare_test.go b/models/process_info_item_compare_test.go index 8e5c29ff..9389f2f9 100644 --- a/models/process_info_item_compare_test.go +++ b/models/process_info_item_compare_test.go @@ -24,6 +24,7 @@ import ( "time" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" "github.com/go-openapi/strfmt" jsoniter "github.com/json-iterator/go" @@ -36,7 +37,7 @@ func TestProcessInfoItemEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ProcessInfoItem var result ProcessInfoItem - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -78,11 +79,11 @@ func TestProcessInfoItemEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ProcessInfoItem var result ProcessInfoItem - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -173,7 +174,7 @@ func TestProcessInfoItemDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ProcessInfoItem var result ProcessInfoItem - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -215,11 +216,11 @@ func TestProcessInfoItemDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ProcessInfoItem var result ProcessInfoItem - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/program_compare_test.go b/models/program_compare_test.go index 4e39623d..d4b82a79 100644 --- a/models/program_compare_test.go +++ b/models/program_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestProgramEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Program var result Program - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestProgramEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Program var result Program - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestProgramDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Program var result Program - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestProgramDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Program var result Program - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/redispatch_compare_test.go b/models/redispatch_compare_test.go index 7005b617..5920658a 100644 --- a/models/redispatch_compare_test.go +++ b/models/redispatch_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestRedispatchEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Redispatch var result Redispatch - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestRedispatchEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Redispatch var result Redispatch - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestRedispatchDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Redispatch var result Redispatch - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestRedispatchDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Redispatch var result Redispatch - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/reload_compare_test.go b/models/reload_compare_test.go index a77f15cc..a4b28fff 100644 --- a/models/reload_compare_test.go +++ b/models/reload_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestReloadEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Reload var result Reload - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestReloadEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Reload var result Reload - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestReloadDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Reload var result Reload - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestReloadDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Reload var result Reload - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/resolver_base_compare_test.go b/models/resolver_base_compare_test.go index ed755a0b..066ba413 100644 --- a/models/resolver_base_compare_test.go +++ b/models/resolver_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestResolverBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ResolverBase var result ResolverBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestResolverBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ResolverBase var result ResolverBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -123,7 +124,7 @@ func TestResolverBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ResolverBase var result ResolverBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -165,11 +166,11 @@ func TestResolverBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ResolverBase var result ResolverBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/resolver_compare_test.go b/models/resolver_compare_test.go index 217db7b2..af7c67f0 100644 --- a/models/resolver_compare_test.go +++ b/models/resolver_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestResolverEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Resolver var result Resolver - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestResolverEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Resolver var result Resolver - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestResolverDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Resolver var result Resolver - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestResolverDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Resolver var result Resolver - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/return_header_compare_test.go b/models/return_header_compare_test.go index 357014c6..0129f334 100644 --- a/models/return_header_compare_test.go +++ b/models/return_header_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestReturnHeaderEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ReturnHeader var result ReturnHeader - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestReturnHeaderEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ReturnHeader var result ReturnHeader - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestReturnHeaderDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ReturnHeader var result ReturnHeader - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestReturnHeaderDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ReturnHeader var result ReturnHeader - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/ring_base_compare_test.go b/models/ring_base_compare_test.go index 72c23853..deebb5bf 100644 --- a/models/ring_base_compare_test.go +++ b/models/ring_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestRingBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample RingBase var result RingBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestRingBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample RingBase var result RingBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -116,7 +117,7 @@ func TestRingBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample RingBase var result RingBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -158,11 +159,11 @@ func TestRingBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample RingBase var result RingBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/ring_compare_test.go b/models/ring_compare_test.go index f65d33a1..2c49f3af 100644 --- a/models/ring_compare_test.go +++ b/models/ring_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestRingEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Ring var result Ring - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestRingEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Ring var result Ring - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestRingDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Ring var result Ring - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestRingDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Ring var result Ring - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/runtime_add_server_compare_test.go b/models/runtime_add_server_compare_test.go index 0694f871..cd290b13 100644 --- a/models/runtime_add_server_compare_test.go +++ b/models/runtime_add_server_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestRuntimeAddServerEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeAddServer var result RuntimeAddServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestRuntimeAddServerEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeAddServer var result RuntimeAddServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -131,7 +132,7 @@ func TestRuntimeAddServerDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeAddServer var result RuntimeAddServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -173,11 +174,11 @@ func TestRuntimeAddServerDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeAddServer var result RuntimeAddServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/runtime_server_compare_test.go b/models/runtime_server_compare_test.go index 4e960d22..4ad170b7 100644 --- a/models/runtime_server_compare_test.go +++ b/models/runtime_server_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestRuntimeServerEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeServer var result RuntimeServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestRuntimeServerEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeServer var result RuntimeServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestRuntimeServerDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeServer var result RuntimeServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestRuntimeServerDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample RuntimeServer var result RuntimeServer - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/server_compare_test.go b/models/server_compare_test.go index 2edadde5..82bb5d78 100644 --- a/models/server_compare_test.go +++ b/models/server_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestServerEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Server var result Server - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestServerEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Server var result Server - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestServerDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Server var result Server - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestServerDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Server var result Server - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -173,7 +174,7 @@ func TestServerDiffFalse(t *testing.T) { for _, sample := range samples { result := sample.a.Diff(sample.b) - if len(result) != 6 { + if len(result) != 5 { json := jsoniter.ConfigCompatibleWithStandardLibrary a, err := json.Marshal(&sample.a) if err != nil { @@ -183,7 +184,7 @@ func TestServerDiffFalse(t *testing.T) { if err != nil { t.Errorf(err.Error()) } - t.Errorf("Expected Server to be different in 6 cases, but it is not (%d) %s %s", len(result), a, b) + t.Errorf("Expected Server to be different in 5 cases, but it is not (%d) %s %s", len(result), a, b) } } } diff --git a/models/server_params_compare_test.go b/models/server_params_compare_test.go index fc3bdaeb..38582eab 100644 --- a/models/server_params_compare_test.go +++ b/models/server_params_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestServerParamsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerParams var result ServerParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestServerParamsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerParams var result ServerParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -134,7 +135,7 @@ func TestServerParamsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerParams var result ServerParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -176,11 +177,11 @@ func TestServerParamsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerParams var result ServerParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -235,7 +236,7 @@ func TestServerParamsSetProxyV2TlvFmtEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerParamsSetProxyV2TlvFmt var result ServerParamsSetProxyV2TlvFmt - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -277,11 +278,11 @@ func TestServerParamsSetProxyV2TlvFmtEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerParamsSetProxyV2TlvFmt var result ServerParamsSetProxyV2TlvFmt - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -314,7 +315,7 @@ func TestServerParamsSetProxyV2TlvFmtDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerParamsSetProxyV2TlvFmt var result ServerParamsSetProxyV2TlvFmt - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -356,11 +357,11 @@ func TestServerParamsSetProxyV2TlvFmtDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerParamsSetProxyV2TlvFmt var result ServerParamsSetProxyV2TlvFmt - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/server_switching_rule_compare_test.go b/models/server_switching_rule_compare_test.go index a600eb9c..7cf496a3 100644 --- a/models/server_switching_rule_compare_test.go +++ b/models/server_switching_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestServerSwitchingRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerSwitchingRule var result ServerSwitchingRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestServerSwitchingRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerSwitchingRule var result ServerSwitchingRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestServerSwitchingRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerSwitchingRule var result ServerSwitchingRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestServerSwitchingRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerSwitchingRule var result ServerSwitchingRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/server_template_compare_test.go b/models/server_template_compare_test.go index 666013a2..db979acd 100644 --- a/models/server_template_compare_test.go +++ b/models/server_template_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestServerTemplateEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerTemplate var result ServerTemplate - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestServerTemplateEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerTemplate var result ServerTemplate - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestServerTemplateDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerTemplate var result ServerTemplate - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestServerTemplateDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample ServerTemplate var result ServerTemplate - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/site_compare_test.go b/models/site_compare_test.go index 1e25fe87..d9adf684 100644 --- a/models/site_compare_test.go +++ b/models/site_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestSiteEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Site var result Site - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestSiteEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Site var result Site - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestSiteDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Site var result Site - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestSiteDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Site var result Site - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -191,7 +192,7 @@ func TestSiteFarmEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SiteFarm var result SiteFarm - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -233,11 +234,11 @@ func TestSiteFarmEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SiteFarm var result SiteFarm - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -270,7 +271,7 @@ func TestSiteFarmDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SiteFarm var result SiteFarm - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -312,11 +313,11 @@ func TestSiteFarmDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SiteFarm var result SiteFarm - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -349,7 +350,7 @@ func TestSiteServiceEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SiteService var result SiteService - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -391,11 +392,11 @@ func TestSiteServiceEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SiteService var result SiteService - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -429,7 +430,7 @@ func TestSiteServiceDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SiteService var result SiteService - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -471,11 +472,11 @@ func TestSiteServiceDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SiteService var result SiteService - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/smtpchk_params_compare_test.go b/models/smtpchk_params_compare_test.go index 023a6f7b..d8c9c253 100644 --- a/models/smtpchk_params_compare_test.go +++ b/models/smtpchk_params_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestSmtpchkParamsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SmtpchkParams var result SmtpchkParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestSmtpchkParamsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SmtpchkParams var result SmtpchkParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestSmtpchkParamsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SmtpchkParams var result SmtpchkParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestSmtpchkParamsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SmtpchkParams var result SmtpchkParams - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/source_compare_test.go b/models/source_compare_test.go index 4e28738b..9cb6e6c6 100644 --- a/models/source_compare_test.go +++ b/models/source_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestSourceEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Source var result Source - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestSourceEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Source var result Source - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestSourceDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Source var result Source - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestSourceDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Source var result Source - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/spoe_agent_compare_test.go b/models/spoe_agent_compare_test.go index e755b9e6..22af7939 100644 --- a/models/spoe_agent_compare_test.go +++ b/models/spoe_agent_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestSpoeAgentEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeAgent var result SpoeAgent - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestSpoeAgentEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeAgent var result SpoeAgent - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -119,7 +120,7 @@ func TestSpoeAgentDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeAgent var result SpoeAgent - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -161,11 +162,11 @@ func TestSpoeAgentDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeAgent var result SpoeAgent - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/spoe_group_compare_test.go b/models/spoe_group_compare_test.go index 67fa862c..b7ccb9e8 100644 --- a/models/spoe_group_compare_test.go +++ b/models/spoe_group_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestSpoeGroupEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeGroup var result SpoeGroup - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestSpoeGroupEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeGroup var result SpoeGroup - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestSpoeGroupDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeGroup var result SpoeGroup - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestSpoeGroupDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeGroup var result SpoeGroup - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/spoe_message_compare_test.go b/models/spoe_message_compare_test.go index bb3fcff3..432f8631 100644 --- a/models/spoe_message_compare_test.go +++ b/models/spoe_message_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestSpoeMessageEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeMessage var result SpoeMessage - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestSpoeMessageEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeMessage var result SpoeMessage - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestSpoeMessageDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeMessage var result SpoeMessage - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestSpoeMessageDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeMessage var result SpoeMessage - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -191,7 +192,7 @@ func TestSpoeMessageEventEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeMessageEvent var result SpoeMessageEvent - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -233,11 +234,11 @@ func TestSpoeMessageEventEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeMessageEvent var result SpoeMessageEvent - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -270,7 +271,7 @@ func TestSpoeMessageEventDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeMessageEvent var result SpoeMessageEvent - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -312,11 +313,11 @@ func TestSpoeMessageEventDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeMessageEvent var result SpoeMessageEvent - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/spoe_scope_compare_test.go b/models/spoe_scope_compare_test.go index d4bce586..249acc9f 100644 --- a/models/spoe_scope_compare_test.go +++ b/models/spoe_scope_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestSpoeScopeEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeScope var result SpoeScope - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestSpoeScopeEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeScope var result SpoeScope - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestSpoeScopeDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeScope var result SpoeScope - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestSpoeScopeDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeScope var result SpoeScope - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/spoe_transaction_compare_test.go b/models/spoe_transaction_compare_test.go index e6408bd4..67ab010b 100644 --- a/models/spoe_transaction_compare_test.go +++ b/models/spoe_transaction_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestSpoeTransactionEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeTransaction var result SpoeTransaction - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestSpoeTransactionEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeTransaction var result SpoeTransaction - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestSpoeTransactionDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeTransaction var result SpoeTransaction - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestSpoeTransactionDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SpoeTransaction var result SpoeTransaction - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/ssl_cert_entry_compare_test.go b/models/ssl_cert_entry_compare_test.go index b2ec6275..72db93f6 100644 --- a/models/ssl_cert_entry_compare_test.go +++ b/models/ssl_cert_entry_compare_test.go @@ -24,6 +24,7 @@ import ( "time" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" "github.com/go-openapi/strfmt" jsoniter "github.com/json-iterator/go" @@ -36,7 +37,7 @@ func TestSslCertEntryEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SslCertEntry var result SslCertEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -78,11 +79,11 @@ func TestSslCertEntryEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SslCertEntry var result SslCertEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -117,7 +118,7 @@ func TestSslCertEntryDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SslCertEntry var result SslCertEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -159,11 +160,11 @@ func TestSslCertEntryDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SslCertEntry var result SslCertEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/ssl_certificate_compare_test.go b/models/ssl_certificate_compare_test.go index 9ee4b129..7b257fab 100644 --- a/models/ssl_certificate_compare_test.go +++ b/models/ssl_certificate_compare_test.go @@ -24,6 +24,7 @@ import ( "time" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" "github.com/go-openapi/strfmt" jsoniter "github.com/json-iterator/go" @@ -36,7 +37,7 @@ func TestSslCertificateEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SslCertificate var result SslCertificate - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -78,11 +79,11 @@ func TestSslCertificateEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SslCertificate var result SslCertificate - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -118,7 +119,7 @@ func TestSslCertificateDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SslCertificate var result SslCertificate - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -160,11 +161,11 @@ func TestSslCertificateDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SslCertificate var result SslCertificate - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/ssl_options_compare_test.go b/models/ssl_options_compare_test.go index f1e8a27f..5c83b9f5 100644 --- a/models/ssl_options_compare_test.go +++ b/models/ssl_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestSslOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SslOptions var result SslOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestSslOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SslOptions var result SslOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -116,7 +117,7 @@ func TestSslOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SslOptions var result SslOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -158,11 +159,11 @@ func TestSslOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SslOptions var result SslOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -199,7 +200,7 @@ func TestSslEngineEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample SslEngine var result SslEngine - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -241,11 +242,11 @@ func TestSslEngineEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SslEngine var result SslEngine - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -278,7 +279,7 @@ func TestSslEngineDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample SslEngine var result SslEngine - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -320,11 +321,11 @@ func TestSslEngineDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample SslEngine var result SslEngine - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/stats_auth_compare_test.go b/models/stats_auth_compare_test.go index b1d907f6..7e820862 100644 --- a/models/stats_auth_compare_test.go +++ b/models/stats_auth_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestStatsAuthEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsAuth var result StatsAuth - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestStatsAuthEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsAuth var result StatsAuth - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestStatsAuthDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsAuth var result StatsAuth - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestStatsAuthDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsAuth var result StatsAuth - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/stats_http_request_compare_test.go b/models/stats_http_request_compare_test.go index 4921defb..b652f56d 100644 --- a/models/stats_http_request_compare_test.go +++ b/models/stats_http_request_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestStatsHTTPRequestEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsHTTPRequest var result StatsHTTPRequest - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestStatsHTTPRequestEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsHTTPRequest var result StatsHTTPRequest - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestStatsHTTPRequestDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsHTTPRequest var result StatsHTTPRequest - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestStatsHTTPRequestDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsHTTPRequest var result StatsHTTPRequest - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/stats_options_compare_test.go b/models/stats_options_compare_test.go index 061720b0..0aad529e 100644 --- a/models/stats_options_compare_test.go +++ b/models/stats_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestStatsOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsOptions var result StatsOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestStatsOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsOptions var result StatsOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -120,7 +121,7 @@ func TestStatsOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsOptions var result StatsOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -162,11 +163,11 @@ func TestStatsOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StatsOptions var result StatsOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/stick_rule_compare_test.go b/models/stick_rule_compare_test.go index 3e5fbd34..03e9ce0a 100644 --- a/models/stick_rule_compare_test.go +++ b/models/stick_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestStickRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample StickRule var result StickRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestStickRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StickRule var result StickRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestStickRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample StickRule var result StickRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestStickRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StickRule var result StickRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/stick_table_compare_test.go b/models/stick_table_compare_test.go index 83501c41..bf99d03a 100644 --- a/models/stick_table_compare_test.go +++ b/models/stick_table_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestStickTableEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTable var result StickTable - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestStickTableEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTable var result StickTable - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestStickTableDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTable var result StickTable - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestStickTableDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTable var result StickTable - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -195,7 +196,7 @@ func TestStickTableFieldEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTableField var result StickTableField - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -237,11 +238,11 @@ func TestStickTableFieldEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTableField var result StickTableField - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -275,7 +276,7 @@ func TestStickTableFieldDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTableField var result StickTableField - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -317,11 +318,11 @@ func TestStickTableFieldDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTableField var result StickTableField - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/stick_table_entry_compare_test.go b/models/stick_table_entry_compare_test.go index f7ff6101..6510754c 100644 --- a/models/stick_table_entry_compare_test.go +++ b/models/stick_table_entry_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestStickTableEntryEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTableEntry var result StickTableEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestStickTableEntryEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTableEntry var result StickTableEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -133,7 +134,7 @@ func TestStickTableEntryDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTableEntry var result StickTableEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -175,11 +176,11 @@ func TestStickTableEntryDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample StickTableEntry var result StickTableEntry - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/table_compare_test.go b/models/table_compare_test.go index 2a9a55bf..82b4f23c 100644 --- a/models/table_compare_test.go +++ b/models/table_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTableEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Table var result Table - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTableEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Table var result Table - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestTableDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Table var result Table - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestTableDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Table var result Table - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tcp_check_compare_test.go b/models/tcp_check_compare_test.go index f4e483d6..75d29b03 100644 --- a/models/tcp_check_compare_test.go +++ b/models/tcp_check_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTCPCheckEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPCheck var result TCPCheck - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTCPCheckEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPCheck var result TCPCheck - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -120,7 +121,7 @@ func TestTCPCheckDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPCheck var result TCPCheck - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -162,11 +163,11 @@ func TestTCPCheckDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPCheck var result TCPCheck - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tcp_request_rule_compare_test.go b/models/tcp_request_rule_compare_test.go index 7ac08cdd..8003dc45 100644 --- a/models/tcp_request_rule_compare_test.go +++ b/models/tcp_request_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTCPRequestRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPRequestRule var result TCPRequestRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTCPRequestRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPRequestRule var result TCPRequestRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -117,7 +118,7 @@ func TestTCPRequestRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPRequestRule var result TCPRequestRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -159,11 +160,11 @@ func TestTCPRequestRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPRequestRule var result TCPRequestRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tcp_response_rule_compare_test.go b/models/tcp_response_rule_compare_test.go index b89bbba7..3635d256 100644 --- a/models/tcp_response_rule_compare_test.go +++ b/models/tcp_response_rule_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTCPResponseRuleEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPResponseRule var result TCPResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTCPResponseRuleEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPResponseRule var result TCPResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -117,7 +118,7 @@ func TestTCPResponseRuleDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPResponseRule var result TCPResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -159,11 +160,11 @@ func TestTCPResponseRuleDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TCPResponseRule var result TCPResponseRule - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/transaction_compare_test.go b/models/transaction_compare_test.go index 4dd63cd1..4a46a55d 100644 --- a/models/transaction_compare_test.go +++ b/models/transaction_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTransactionEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Transaction var result Transaction - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTransactionEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Transaction var result Transaction - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestTransactionDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Transaction var result Transaction - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestTransactionDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Transaction var result Transaction - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tune_buffer_options_compare_test.go b/models/tune_buffer_options_compare_test.go index f78188d6..eb174706 100644 --- a/models/tune_buffer_options_compare_test.go +++ b/models/tune_buffer_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTuneBufferOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneBufferOptions var result TuneBufferOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTuneBufferOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneBufferOptions var result TuneBufferOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -125,7 +126,7 @@ func TestTuneBufferOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneBufferOptions var result TuneBufferOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -167,11 +168,11 @@ func TestTuneBufferOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneBufferOptions var result TuneBufferOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tune_lua_options_compare_test.go b/models/tune_lua_options_compare_test.go index 7c512d8a..09f4ff00 100644 --- a/models/tune_lua_options_compare_test.go +++ b/models/tune_lua_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTuneLuaOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneLuaOptions var result TuneLuaOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTuneLuaOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneLuaOptions var result TuneLuaOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -118,7 +119,7 @@ func TestTuneLuaOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneLuaOptions var result TuneLuaOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -160,11 +161,11 @@ func TestTuneLuaOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneLuaOptions var result TuneLuaOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tune_options_compare_test.go b/models/tune_options_compare_test.go index 5fefdc0b..3cb86795 100644 --- a/models/tune_options_compare_test.go +++ b/models/tune_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTuneOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneOptions var result TuneOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTuneOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneOptions var result TuneOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -143,7 +144,7 @@ func TestTuneOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneOptions var result TuneOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -185,11 +186,11 @@ func TestTuneOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneOptions var result TuneOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tune_quic_options_compare_test.go b/models/tune_quic_options_compare_test.go index 4b8e4beb..f027ed08 100644 --- a/models/tune_quic_options_compare_test.go +++ b/models/tune_quic_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTuneQuicOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneQuicOptions var result TuneQuicOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTuneQuicOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneQuicOptions var result TuneQuicOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -118,7 +119,7 @@ func TestTuneQuicOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneQuicOptions var result TuneQuicOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -160,11 +161,11 @@ func TestTuneQuicOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneQuicOptions var result TuneQuicOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tune_ssl_options_compare_test.go b/models/tune_ssl_options_compare_test.go index 258f6679..64d50c9b 100644 --- a/models/tune_ssl_options_compare_test.go +++ b/models/tune_ssl_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTuneSslOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneSslOptions var result TuneSslOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTuneSslOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneSslOptions var result TuneSslOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -121,7 +122,7 @@ func TestTuneSslOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneSslOptions var result TuneSslOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -163,11 +164,11 @@ func TestTuneSslOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneSslOptions var result TuneSslOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tune_vars_options_compare_test.go b/models/tune_vars_options_compare_test.go index 8b8978e6..c722b74f 100644 --- a/models/tune_vars_options_compare_test.go +++ b/models/tune_vars_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTuneVarsOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneVarsOptions var result TuneVarsOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTuneVarsOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneVarsOptions var result TuneVarsOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -117,7 +118,7 @@ func TestTuneVarsOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneVarsOptions var result TuneVarsOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -159,11 +160,11 @@ func TestTuneVarsOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneVarsOptions var result TuneVarsOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/tune_zlib_options_compare_test.go b/models/tune_zlib_options_compare_test.go index abb21699..18208c99 100644 --- a/models/tune_zlib_options_compare_test.go +++ b/models/tune_zlib_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestTuneZlibOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneZlibOptions var result TuneZlibOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestTuneZlibOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneZlibOptions var result TuneZlibOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -114,7 +115,7 @@ func TestTuneZlibOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneZlibOptions var result TuneZlibOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -156,11 +157,11 @@ func TestTuneZlibOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample TuneZlibOptions var result TuneZlibOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/user_compare_test.go b/models/user_compare_test.go index 563e3532..f85c932f 100644 --- a/models/user_compare_test.go +++ b/models/user_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestUserEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample User var result User - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestUserEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample User var result User - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestUserDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample User var result User - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestUserDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample User var result User - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/userlist_base_compare_test.go b/models/userlist_base_compare_test.go index 8ad74ef2..696ae629 100644 --- a/models/userlist_base_compare_test.go +++ b/models/userlist_base_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestUserlistBaseEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample UserlistBase var result UserlistBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestUserlistBaseEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample UserlistBase var result UserlistBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestUserlistBaseDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample UserlistBase var result UserlistBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestUserlistBaseDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample UserlistBase var result UserlistBase - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/userlist_compare_test.go b/models/userlist_compare_test.go index 99f54feb..109e4767 100644 --- a/models/userlist_compare_test.go +++ b/models/userlist_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestUserlistEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample Userlist var result Userlist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestUserlistEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Userlist var result Userlist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -112,7 +113,7 @@ func TestUserlistDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample Userlist var result Userlist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -154,11 +155,11 @@ func TestUserlistDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample Userlist var result Userlist - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } diff --git a/models/wurfl_options_compare_test.go b/models/wurfl_options_compare_test.go index 75c48bbe..80efb633 100644 --- a/models/wurfl_options_compare_test.go +++ b/models/wurfl_options_compare_test.go @@ -22,6 +22,7 @@ import ( "testing" "github.com/go-faker/faker/v4" + "github.com/go-faker/faker/v4/pkg/options" jsoniter "github.com/json-iterator/go" ) @@ -33,7 +34,7 @@ func TestWurflOptionsEqual(t *testing.T) { for i := 0; i < 2; i++ { var sample WurflOptions var result WurflOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -75,11 +76,11 @@ func TestWurflOptionsEqualFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample WurflOptions var result WurflOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -113,7 +114,7 @@ func TestWurflOptionsDiff(t *testing.T) { for i := 0; i < 2; i++ { var sample WurflOptions var result WurflOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } @@ -155,11 +156,11 @@ func TestWurflOptionsDiffFalse(t *testing.T) { for i := 0; i < 2; i++ { var sample WurflOptions var result WurflOptions - err := faker.FakeData(&sample) + err := faker.FakeData(&sample, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) } - err = faker.FakeData(&result) + err = faker.FakeData(&result, options.WithIgnoreInterface(true)) if err != nil { t.Errorf(err.Error()) }