gorm/tests
Jim 19cf645dbd feat: Convert SQL nulls to zero values (ConvertNullToZeroValues)
Makes it the default behavior to convert SQL null values to zero
values for model fields which are not pointers.
2021-10-13 08:11:22 -04:00
..
.gitignore Refactor Prepared Statement 2020-07-28 14:46:48 +08:00
README.md Setup tests script 2020-02-23 09:38:51 +08:00
associations_belongs_to_test.go Handle Associations with pointer of pointer, close 2020-07-10 22:53:03 +08:00
associations_has_many_test.go Test Association Mode with conditions 2020-08-20 10:39:01 +08:00
associations_has_one_test.go Allow to omit fields in associations, close 2020-11-17 21:49:40 +08:00
associations_many2many_test.go Support replace associations without the creation in association mode, close 2021-01-26 14:34:21 +08:00
associations_test.go Fix typo in associations_test.go () 2021-05-27 17:40:28 +08:00
benchmark_test.go Refactor codebase and add benchmark test 2020-06-05 23:26:56 +08:00
callbacks_test.go Fix failed to guess relations for embedded types, close 2020-08-04 12:25:34 +08:00
count_test.go Fix count with selected * 2021-09-16 11:17:54 +08:00
create_test.go fixed:panic when create value from nil struct pointer. () 2021-10-12 21:19:08 +08:00
customize_field_test.go Fix use uint to for autoCreateTime, autoUpdateTime 2020-09-11 17:33:31 +08:00
default_value_test.go Compatible with tag notNull 2020-10-09 17:42:28 +08:00
delete_test.go Add tests for RowsAffected 2021-09-09 11:22:55 +08:00
distinct_test.go fix:remove the tableName judgment in pluck () 2021-09-27 22:11:29 +08:00
docker-compose.yml Fix tests with mysql, postgres 2020-03-12 13:05:22 +08:00
embedded_struct_test.go Fix create database foreign keys for same type having has many/one & many2many relationships, close 2020-09-08 18:25:29 +08:00
go.mod update tests' go.mod and tests_all.sh () 2021-10-13 14:41:33 +08:00
gorm_test.go feat: Convert SQL nulls to zero values (ConvertNullToZeroValues) 2021-10-13 08:11:22 -04:00
group_by_test.go Support Having w/o Group 2021-03-30 18:28:09 +08:00
helper_test.go Clean up associations before Preload, close 2020-09-01 13:48:37 +08:00
hooks_test.go Don't call AfterFind hooks if no record found, close 2021-02-07 12:44:59 +08:00
joins_table_test.go Support delete associations with Select when deleting 2020-09-10 21:46:18 +08:00
joins_test.go fixed: clauseSelect.Columns missed when use Join And execute multiple query. () 2021-10-09 16:55:45 +08:00
main_test.go Update test script 2020-06-24 19:09:19 +08:00
migrate_test.go Upgrade sqlite driver 2021-10-08 17:31:58 +08:00
multi_primary_keys_test.go Select all fields in SQL queries avoiding the SELECT * FROM () 2020-11-20 15:38:25 +08:00
named_argument_test.go Fix named argument with multiple line SQL, fix 2020-08-31 15:45:56 +08:00
named_polymorphic_test.go Add index priority supports 2020-07-08 17:59:40 +08:00
non_std_test.go Refactor tests files 2020-06-02 10:50:38 +08:00
postgres_test.go Add name checker test, close 2021-01-27 17:45:59 +08:00
preload_suits_test.go Fix failed to parse relations when using goroutinue, close 2020-11-27 14:32:20 +08:00
preload_test.go Fix Preload with nil pointer 2021-04-15 10:37:05 +08:00
prepared_stmt_test.go Fix prepared statement in transaction mode can't be shared in normal operations, close 2021-01-10 16:46:06 +08:00
query_test.go Fix extra 'AND' when len(values) == 0 ON IN.NegationBuild() () 2021-08-20 18:06:48 +08:00
scan_test.go Fix scan with interface 2021-09-17 18:35:14 +08:00
scanner_valuer_test.go Fix update attrs order 2020-08-27 19:52:01 +08:00
scopes_test.go Fix Scopes with Row, close 2021-06-18 15:38:20 +08:00
soft_delete_test.go populate the DeletedAt field when soft delete, fix 2020-12-15 10:39:20 +08:00
sql_builder_test.go Revert "Revert "Don't override the from clauses, close #4129" close #4139" 2021-03-05 22:19:34 +08:00
table_test.go fix: table couln't be reentrant () 2021-08-09 13:20:22 +08:00
tests_all.sh update tests' go.mod and tests_all.sh () 2021-10-13 14:41:33 +08:00
tests_test.go Fix transaction on closed conn when using prepared statement, close 2020-09-03 19:16:55 +08:00
transaction_test.go Fix new session with Begin, close 2021-02-26 16:43:43 +08:00
update_belongs_to_test.go Support FullSaveAssociations Mode, close , 2020-09-24 19:29:15 +08:00
update_has_many_test.go Support FullSaveAssociations Mode, close , 2020-09-24 19:29:15 +08:00
update_has_one_test.go Test update association with non-updatable 2021-08-26 13:37:49 +08:00
update_many2many_test.go Support FullSaveAssociations Mode, close , 2020-09-24 19:29:15 +08:00
update_test.go Add tests for RowsAffected 2021-09-09 11:22:55 +08:00
upsert_test.go fix : update miss where's condition when primary key use "<-:create" tag () 2021-10-08 13:47:01 +08:00

README.md

Test Guide

cd tests
# prepare test databases
docker-compose up

# run all tests
./tests_all.sh