gorm/tests
Jinzhu 6bfccf8afa Refactor all tests script 2024-11-21 17:03:31 +08: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 feat: add MigrateColumnUnique (#6640) 2023-10-30 17:15:49 +08:00
associations_has_many_test.go Fix association replace non-addressable panic (#7012) 2024-06-12 18:49:45 +08:00
associations_has_one_test.go Fix association replace non-addressable panic (#7012) 2024-06-12 18:49:45 +08:00
associations_many2many_test.go test: coverage for duplicated key err (#6389) 2023-06-10 21:05:19 +08:00
associations_test.go feat: add tidb integration test cases (#6014) 2023-02-08 16:29:09 +08:00
benchmark_test.go enhancement: Avoid calling reflect.New() when passing in slice of values to `Scan()` (#5388) 2022-06-01 11:50:57 +08:00
callbacks_test.go fix: remove `callback` from `callbacks` if `Remove()` called (#6916) 2024-03-26 11:33:36 +08:00
compose.yml Use official SQL Server docker image for tests (#7205) 2024-09-30 11:21:19 +08:00
connection_test.go fix: omit not work when use join (#5034) 2022-01-28 22:16:42 +08:00
connpool_test.go let limit and offset use bind parameter (#6806) 2024-02-06 10:54:40 +08:00
count_test.go feat: add MigrateColumnUnique (#6640) 2023-10-30 17:15:49 +08:00
create_test.go Fix insert id into map results, fix #6812 2024-03-19 11:50:28 +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 Fix duplicated columns in INSERT SQL for some fields with default value 2024-04-08 11:29:55 +08:00
delete_test.go add support for returning in sqlserver (#6585) 2023-10-10 15:03:34 +08:00
distinct_test.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
embedded_struct_test.go fix: typo (#7003) 2024-05-08 12:07:58 +08:00
error_translator_test.go test: coverage for foreign key violation err (#6403) 2023-07-12 21:21:22 +08:00
go.mod Refactor all tests script 2024-11-21 17:03:31 +08:00
gorm_test.go fix: avoid panic when open fails 2023-06-01 15:22:21 +08:00
group_by_test.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
helper_test.go Fix insert id into map results, fix #6812 2024-03-19 11:50:28 +08:00
hooks_test.go add DB level propagation for the Unscoped flag (#7007) 2024-06-17 11:59:06 +08:00
joins_table_test.go Support delete associations with Select when deleting 2020-09-10 21:46:18 +08:00
joins_test.go fix CI for sqlserver 2024-06-17 11:58:13 +08:00
main_test.go style: fix coding typo (#5184) 2022-03-24 09:31:58 +08:00
migrate_test.go [#6372] Fixed nullable constraint bug for columns during auto migration (#7269) 2024-11-14 17:40:18 +08:00
multi_primary_keys_test.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
named_argument_test.go Fix: Where clauses with named arguments may cause generation of unintended queries (#4937) 2021-12-21 19:50:00 +08:00
named_polymorphic_test.go Add index priority supports 2020-07-08 17:59:40 +08:00
non_std_test.go fix: typo (#7003) 2024-05-08 12:07:58 +08:00
postgres_test.go Test postgres autoincrement check 2022-10-08 17:16:32 +08:00
preload_suits_test.go fix: preload panic when model and dest different close #5130 2022-03-18 13:38:46 +08:00
preload_test.go fix: `unsupported data` on nested joins with preloads (#6957) 2024-06-12 18:00:47 +08:00
prepared_stmt_test.go fix memory leaks in PrepareStatementDB (#7142) 2024-08-22 19:02:05 +08:00
query_test.go feat: add MapColumns method (#6901) 2024-06-24 17:42:59 +08:00
scan_test.go fix(scan): update Scan function to reset structs to zero values for each scan (#7061) 2024-06-12 18:57:36 +08:00
scanner_valuer_test.go fix: database/sql.Scanner should not retain references (#6380) 2023-06-07 15:02:07 +08:00
scopes_test.go Fix tests doesn't follow https://gorm.io/docs/method_chaining.html convention 2024-01-12 16:42:21 +08:00
serializer_test.go fix: unit test (#6250) 2023-04-21 22:09:38 +08:00
soft_delete_test.go fix: support zeroValue tag on DeletedAt (#6011) 2023-02-01 14:40:55 +08:00
sql_builder_test.go Fix tests doesn't follow https://gorm.io/docs/method_chaining.html convention 2024-01-12 16:42:21 +08:00
table_test.go test: namer identifier lenght (#6872) 2024-03-09 17:31:28 +08:00
tests_all.sh Refactor all tests script 2024-11-21 17:03:31 +08:00
tests_test.go Use official SQL Server docker image for tests (#7205) 2024-09-30 11:21:19 +08:00
tracer_test.go add test: TestAutoMigrateInt8PG: shouldn't execute ALTER COLUMN TYPE smallint, close #5762 2022-10-18 17:28:06 +08:00
transaction_test.go Generate unique savepoint names for nested transactions (#7174) 2024-09-14 20:58:29 +08:00
update_belongs_to_test.go Update select tests 2022-07-14 14:55:54 +08:00
update_has_many_test.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
update_has_one_test.go Update select tests 2022-07-14 14:55:54 +08:00
update_many2many_test.go ci: add gofumpt check in reviewdog (#4973) 2022-01-06 15:02:53 +08:00
update_test.go add test to show that update from works 2023-12-04 11:50:58 +08:00
upsert_test.go simplified regexp (#5677) 2022-09-05 15:39:19 +08:00

README.md

Test Guide

cd tests
# prepare test databases
docker-compose up

# run all tests
./tests_all.sh