deforest 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/deforest/version.rb +1 -1
- data/lib/generators/deforest/USAGE +9 -0
- data/lib/generators/deforest/deforest_generator.rb +39 -0
- data/lib/generators/deforest/templates/migration.rb +12 -0
- data/lib/generators/deforest/templates/zeitwerk_enabled_initializer.rb +10 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1172 -0
- metadata +7 -4
- data/lib/tasks/deforest_tasks.rake +0 -7
- /data/lib/{tasks/deforest_initializer.rb → generators/deforest/templates/classic_enabled_initializer.rb} +0 -0
data/test/dummy/log/test.log
CHANGED
@@ -18283,3 +18283,1175 @@ Deforest::LogTest: test_get_model_name
|
|
18283
18283
|
--------------------------------------
|
18284
18284
|
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
18285
18285
|
[1m[35m (0.0ms)[0m rollback transaction
|
18286
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18287
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18288
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "posts"[0m
|
18289
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-02-27 17:32:58', '2023-02-27 17:32:58', 980190962)
|
18290
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-02-27 17:32:58', '2023-02-27 17:32:58', 298486374)[0m
|
18291
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "deforest_logs"
|
18292
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-02-27 17:32:58', '2023-02-27 17:32:58', 980190962)[0m
|
18293
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-02-27 17:32:58', '2023-02-27 17:32:58', 298486374)
|
18294
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-02-27 17:32:58', '2023-02-27 17:32:58', 113629430)[0m
|
18295
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-02-27 17:32:58', '2023-02-27 17:32:58', 933434481)
|
18296
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-02-27 17:32:58', '2023-02-27 17:32:58', 303968118)[0m
|
18297
|
+
[1m[35m (1.2ms)[0m commit transaction
|
18298
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18299
|
+
-----------------------------------------------------
|
18300
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
18301
|
+
-----------------------------------------------------
|
18302
|
+
[1m[35mDeforest::Log Load (0.2ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
18303
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
18304
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18305
|
+
--------------------------------------
|
18306
|
+
Deforest::LogTest: test_get_model_name
|
18307
|
+
--------------------------------------
|
18308
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
18309
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18310
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18311
|
+
----------------------------------
|
18312
|
+
Deforest::LogTest: test_percentile
|
18313
|
+
----------------------------------
|
18314
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
18315
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18316
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18317
|
+
---------------------------------------------------------------------
|
18318
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
18319
|
+
---------------------------------------------------------------------
|
18320
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18321
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
18322
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18323
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18324
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18325
|
+
-----------------------------
|
18326
|
+
PostTest: test_get_app_models
|
18327
|
+
-----------------------------
|
18328
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
18329
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18330
|
+
------------------------------------------------------------------------
|
18331
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
18332
|
+
------------------------------------------------------------------------
|
18333
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18334
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1[0m
|
18335
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18336
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18337
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18338
|
+
---------------------------------------------------------------------------
|
18339
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
18340
|
+
---------------------------------------------------------------------------
|
18341
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18342
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18343
|
+
------------------------------------------
|
18344
|
+
DeforestTest: test_parse_and_save_log_file
|
18345
|
+
------------------------------------------
|
18346
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-02-27 17:32:58 UTC', '2023-02-27 17:32:58 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-02-27 17:32:58 UTC', '2023-02-27 17:32:58 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-02-27 17:32:58 UTC', '2023-02-27 17:32:58 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-02-27 17:32:58 UTC', '2023-02-27 17:32:58 UTC');[0m
|
18347
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
18348
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
18349
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
18350
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
18351
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
18352
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18353
|
+
-----------------------------------
|
18354
|
+
DeforestTest: test_insert_into_logs
|
18355
|
+
-----------------------------------
|
18356
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18357
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18358
|
+
-----------------------------------------------------------------------
|
18359
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
18360
|
+
-----------------------------------------------------------------------
|
18361
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18362
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18363
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18364
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "posts"[0m
|
18365
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-02-27 17:34:19', '2023-02-27 17:34:19', 980190962)
|
18366
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-02-27 17:34:19', '2023-02-27 17:34:19', 298486374)[0m
|
18367
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "deforest_logs"
|
18368
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-02-27 17:34:19', '2023-02-27 17:34:19', 980190962)[0m
|
18369
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-02-27 17:34:19', '2023-02-27 17:34:19', 298486374)
|
18370
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-02-27 17:34:19', '2023-02-27 17:34:19', 113629430)[0m
|
18371
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-02-27 17:34:19', '2023-02-27 17:34:19', 933434481)
|
18372
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-02-27 17:34:19', '2023-02-27 17:34:19', 303968118)[0m
|
18373
|
+
[1m[35m (2.2ms)[0m commit transaction
|
18374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18375
|
+
------------------------------------------
|
18376
|
+
DeforestTest: test_parse_and_save_log_file
|
18377
|
+
------------------------------------------
|
18378
|
+
[1m[35m (0.4ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-02-27 17:34:19 UTC', '2023-02-27 17:34:19 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-02-27 17:34:19 UTC', '2023-02-27 17:34:19 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-02-27 17:34:19 UTC', '2023-02-27 17:34:19 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-02-27 17:34:19 UTC', '2023-02-27 17:34:19 UTC');
|
18379
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
18380
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
18381
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
18382
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
18383
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
18384
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18385
|
+
-----------------------------------------------------------------------
|
18386
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
18387
|
+
-----------------------------------------------------------------------
|
18388
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18389
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18390
|
+
---------------------------------------------------------------------------
|
18391
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
18392
|
+
---------------------------------------------------------------------------
|
18393
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18395
|
+
-----------------------------------
|
18396
|
+
DeforestTest: test_insert_into_logs
|
18397
|
+
-----------------------------------
|
18398
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18399
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18400
|
+
--------------------------------------
|
18401
|
+
Deforest::LogTest: test_get_model_name
|
18402
|
+
--------------------------------------
|
18403
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
18404
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
18405
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18406
|
+
----------------------------------
|
18407
|
+
Deforest::LogTest: test_percentile
|
18408
|
+
----------------------------------
|
18409
|
+
[1m[35mDeforest::Log Load (0.2ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
18410
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18411
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18412
|
+
-----------------------------------------------------
|
18413
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
18414
|
+
-----------------------------------------------------
|
18415
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18416
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18417
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18418
|
+
------------------------------------------------------------------------
|
18419
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
18420
|
+
------------------------------------------------------------------------
|
18421
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18422
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1[0m
|
18423
|
+
[1m[35m (0.3ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-02-27 17:34:19 UTC', '2023-02-27 17:34:19 UTC');
|
18424
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18425
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
18426
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18427
|
+
---------------------------------------------------------------------
|
18428
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
18429
|
+
---------------------------------------------------------------------
|
18430
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18431
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-02-27 17:34:19 UTC', '2023-02-27 17:34:19 UTC');[0m
|
18432
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
18433
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18434
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
18435
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18436
|
+
-----------------------------
|
18437
|
+
PostTest: test_get_app_models
|
18438
|
+
-----------------------------
|
18439
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18440
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18442
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "posts"[0m
|
18443
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-19 15:43:30', '2023-08-19 15:43:30', 980190962)
|
18444
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-19 15:43:30', '2023-08-19 15:43:30', 298486374)[0m
|
18445
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "deforest_logs"
|
18446
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-19 15:43:30', '2023-08-19 15:43:30', 980190962)[0m
|
18447
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-19 15:43:30', '2023-08-19 15:43:30', 298486374)
|
18448
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-19 15:43:30', '2023-08-19 15:43:30', 113629430)[0m
|
18449
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-19 15:43:30', '2023-08-19 15:43:30', 933434481)
|
18450
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-19 15:43:30', '2023-08-19 15:43:30', 303968118)[0m
|
18451
|
+
[1m[35m (1.0ms)[0m commit transaction
|
18452
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18453
|
+
---------------------------------------------------------------------
|
18454
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
18455
|
+
---------------------------------------------------------------------
|
18456
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18457
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts"[0m
|
18458
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18459
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18460
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18461
|
+
-----------------------------
|
18462
|
+
PostTest: test_get_app_models
|
18463
|
+
-----------------------------
|
18464
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
18465
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18466
|
+
------------------------------------------------------------------------
|
18467
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
18468
|
+
------------------------------------------------------------------------
|
18469
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18470
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1
|
18471
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18472
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18473
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18474
|
+
-----------------------------------------------------------------------
|
18475
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
18476
|
+
-----------------------------------------------------------------------
|
18477
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18478
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18479
|
+
---------------------------------------------------------------------------
|
18480
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
18481
|
+
---------------------------------------------------------------------------
|
18482
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18483
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18484
|
+
-----------------------------------
|
18485
|
+
DeforestTest: test_insert_into_logs
|
18486
|
+
-----------------------------------
|
18487
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18488
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18489
|
+
------------------------------------------
|
18490
|
+
DeforestTest: test_parse_and_save_log_file
|
18491
|
+
------------------------------------------
|
18492
|
+
[1m[35m (0.5ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-19 15:43:30 UTC', '2023-08-19 15:43:30 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-19 15:43:30 UTC', '2023-08-19 15:43:30 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-19 15:43:30 UTC', '2023-08-19 15:43:30 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-19 15:43:30 UTC', '2023-08-19 15:43:30 UTC');
|
18493
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
18494
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
18495
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
18496
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
18497
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
18498
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18499
|
+
-----------------------------------------------------
|
18500
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
18501
|
+
-----------------------------------------------------
|
18502
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18503
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18504
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18505
|
+
----------------------------------
|
18506
|
+
Deforest::LogTest: test_percentile
|
18507
|
+
----------------------------------
|
18508
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
18509
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18510
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18511
|
+
--------------------------------------
|
18512
|
+
Deforest::LogTest: test_get_model_name
|
18513
|
+
--------------------------------------
|
18514
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
18515
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18516
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18517
|
+
[1m[35m (0.2ms)[0m begin transaction
|
18518
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "posts"[0m
|
18519
|
+
[1m[35mFixture Insert (3.1ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-19 16:00:35', '2023-08-19 16:00:35', 980190962)
|
18520
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-19 16:00:35', '2023-08-19 16:00:35', 298486374)[0m
|
18521
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "deforest_logs"
|
18522
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-19 16:00:35', '2023-08-19 16:00:35', 980190962)[0m
|
18523
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-19 16:00:35', '2023-08-19 16:00:35', 298486374)
|
18524
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-19 16:00:35', '2023-08-19 16:00:35', 113629430)[0m
|
18525
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-19 16:00:35', '2023-08-19 16:00:35', 933434481)
|
18526
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-19 16:00:35', '2023-08-19 16:00:35', 303968118)[0m
|
18527
|
+
[1m[35m (1.3ms)[0m commit transaction
|
18528
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18529
|
+
--------------------------------------
|
18530
|
+
Deforest::LogTest: test_get_model_name
|
18531
|
+
--------------------------------------
|
18532
|
+
[1m[35mDeforest::Log Load (0.9ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1 [["id", 980190962]]
|
18533
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
18534
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18535
|
+
-----------------------------------------------------
|
18536
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
18537
|
+
-----------------------------------------------------
|
18538
|
+
[1m[36mDeforest::Log Load (0.3ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18539
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18540
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18541
|
+
----------------------------------
|
18542
|
+
Deforest::LogTest: test_percentile
|
18543
|
+
----------------------------------
|
18544
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
18545
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18546
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18547
|
+
---------------------------------------------------------------------------
|
18548
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
18549
|
+
---------------------------------------------------------------------------
|
18550
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
18551
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18552
|
+
-----------------------------------
|
18553
|
+
DeforestTest: test_insert_into_logs
|
18554
|
+
-----------------------------------
|
18555
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
18556
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18557
|
+
------------------------------------------
|
18558
|
+
DeforestTest: test_parse_and_save_log_file
|
18559
|
+
------------------------------------------
|
18560
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-19 16:00:35 UTC', '2023-08-19 16:00:35 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-19 16:00:35 UTC', '2023-08-19 16:00:35 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-19 16:00:35 UTC', '2023-08-19 16:00:35 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-19 16:00:35 UTC', '2023-08-19 16:00:35 UTC');[0m
|
18561
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
18562
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
18563
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
18564
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
18565
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
18566
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18567
|
+
-----------------------------------------------------------------------
|
18568
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
18569
|
+
-----------------------------------------------------------------------
|
18570
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18571
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18572
|
+
---------------------------------------------------------------------
|
18573
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
18574
|
+
---------------------------------------------------------------------
|
18575
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18576
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts"[0m
|
18577
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18578
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18579
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18580
|
+
------------------------------------------------------------------------
|
18581
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
18582
|
+
------------------------------------------------------------------------
|
18583
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18584
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1
|
18585
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18586
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18587
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
18588
|
+
-----------------------------
|
18589
|
+
PostTest: test_get_app_models
|
18590
|
+
-----------------------------
|
18591
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18592
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18593
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18594
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "posts"[0m
|
18595
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-19 19:57:03', '2023-08-19 19:57:03', 980190962)
|
18596
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-19 19:57:03', '2023-08-19 19:57:03', 298486374)[0m
|
18597
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "deforest_logs"
|
18598
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-19 19:57:03', '2023-08-19 19:57:03', 980190962)[0m
|
18599
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-19 19:57:03', '2023-08-19 19:57:03', 298486374)
|
18600
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-19 19:57:03', '2023-08-19 19:57:03', 113629430)[0m
|
18601
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-19 19:57:03', '2023-08-19 19:57:03', 933434481)
|
18602
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-19 19:57:03', '2023-08-19 19:57:03', 303968118)[0m
|
18603
|
+
[1m[35m (1.9ms)[0m commit transaction
|
18604
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18605
|
+
------------------------------------------------------------------------
|
18606
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
18607
|
+
------------------------------------------------------------------------
|
18608
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18609
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1[0m
|
18610
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18611
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18612
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18613
|
+
-----------------------------
|
18614
|
+
PostTest: test_get_app_models
|
18615
|
+
-----------------------------
|
18616
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18617
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18618
|
+
---------------------------------------------------------------------
|
18619
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
18620
|
+
---------------------------------------------------------------------
|
18621
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18622
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
18623
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18624
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18625
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18626
|
+
------------------------------------------
|
18627
|
+
DeforestTest: test_parse_and_save_log_file
|
18628
|
+
------------------------------------------
|
18629
|
+
[1m[35m (0.3ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-19 19:57:03 UTC', '2023-08-19 19:57:03 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-19 19:57:03 UTC', '2023-08-19 19:57:03 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-19 19:57:03 UTC', '2023-08-19 19:57:03 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-19 19:57:03 UTC', '2023-08-19 19:57:03 UTC');
|
18630
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
18631
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
18632
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
18633
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
18634
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
18635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18636
|
+
-----------------------------------------------------------------------
|
18637
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
18638
|
+
-----------------------------------------------------------------------
|
18639
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18640
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18641
|
+
-----------------------------------
|
18642
|
+
DeforestTest: test_insert_into_logs
|
18643
|
+
-----------------------------------
|
18644
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
18645
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18646
|
+
---------------------------------------------------------------------------
|
18647
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
18648
|
+
---------------------------------------------------------------------------
|
18649
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18650
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18651
|
+
----------------------------------
|
18652
|
+
Deforest::LogTest: test_percentile
|
18653
|
+
----------------------------------
|
18654
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18655
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18656
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18657
|
+
-----------------------------------------------------
|
18658
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
18659
|
+
-----------------------------------------------------
|
18660
|
+
[1m[35mDeforest::Log Load (0.2ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
18661
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18662
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18663
|
+
--------------------------------------
|
18664
|
+
Deforest::LogTest: test_get_model_name
|
18665
|
+
--------------------------------------
|
18666
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
18667
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18668
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18669
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18670
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "posts"[0m
|
18671
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-19 20:18:28', '2023-08-19 20:18:28', 980190962)
|
18672
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-19 20:18:28', '2023-08-19 20:18:28', 298486374)[0m
|
18673
|
+
[1m[35mFixture Delete (10.6ms)[0m DELETE FROM "deforest_logs"
|
18674
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-19 20:18:28', '2023-08-19 20:18:28', 980190962)[0m
|
18675
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-19 20:18:28', '2023-08-19 20:18:28', 298486374)
|
18676
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-19 20:18:28', '2023-08-19 20:18:28', 113629430)[0m
|
18677
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-19 20:18:28', '2023-08-19 20:18:28', 933434481)
|
18678
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-19 20:18:28', '2023-08-19 20:18:28', 303968118)[0m
|
18679
|
+
[1m[35m (4.5ms)[0m commit transaction
|
18680
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18681
|
+
------------------------------------------------------------------------
|
18682
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
18683
|
+
------------------------------------------------------------------------
|
18684
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18685
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1[0m
|
18686
|
+
[1m[35m (0.3ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-08-19 20:18:28 UTC', '2023-08-19 20:18:28 UTC');
|
18687
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18688
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
18689
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18690
|
+
---------------------------------------------------------------------
|
18691
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
18692
|
+
---------------------------------------------------------------------
|
18693
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18694
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-08-19 20:18:28 UTC', '2023-08-19 20:18:28 UTC');[0m
|
18695
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
18696
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18697
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
18698
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18699
|
+
-----------------------------
|
18700
|
+
PostTest: test_get_app_models
|
18701
|
+
-----------------------------
|
18702
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18703
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18704
|
+
-----------------------------------------------------------------------
|
18705
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
18706
|
+
-----------------------------------------------------------------------
|
18707
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
18708
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18709
|
+
---------------------------------------------------------------------------
|
18710
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
18711
|
+
---------------------------------------------------------------------------
|
18712
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18713
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18714
|
+
------------------------------------------
|
18715
|
+
DeforestTest: test_parse_and_save_log_file
|
18716
|
+
------------------------------------------
|
18717
|
+
[1m[35m (0.3ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-19 20:18:28 UTC', '2023-08-19 20:18:28 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-19 20:18:28 UTC', '2023-08-19 20:18:28 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-19 20:18:28 UTC', '2023-08-19 20:18:28 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-19 20:18:28 UTC', '2023-08-19 20:18:28 UTC');
|
18718
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
18719
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
18720
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
18721
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
18722
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
18723
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18724
|
+
-----------------------------------
|
18725
|
+
DeforestTest: test_insert_into_logs
|
18726
|
+
-----------------------------------
|
18727
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18728
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18729
|
+
----------------------------------
|
18730
|
+
Deforest::LogTest: test_percentile
|
18731
|
+
----------------------------------
|
18732
|
+
[1m[36mDeforest::Log Load (0.4ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18733
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
18734
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18735
|
+
-----------------------------------------------------
|
18736
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
18737
|
+
-----------------------------------------------------
|
18738
|
+
[1m[35mDeforest::Log Load (0.3ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
18739
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
18740
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18741
|
+
--------------------------------------
|
18742
|
+
Deforest::LogTest: test_get_model_name
|
18743
|
+
--------------------------------------
|
18744
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
18745
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18746
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
18747
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18748
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "posts"[0m
|
18749
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 13:46:48', '2023-08-20 13:46:48', 980190962)
|
18750
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 13:46:48', '2023-08-20 13:46:48', 298486374)[0m
|
18751
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "deforest_logs"
|
18752
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-20 13:46:48', '2023-08-20 13:46:48', 980190962)[0m
|
18753
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-20 13:46:48', '2023-08-20 13:46:48', 298486374)
|
18754
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-20 13:46:48', '2023-08-20 13:46:48', 113629430)[0m
|
18755
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-20 13:46:48', '2023-08-20 13:46:48', 933434481)
|
18756
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-20 13:46:48', '2023-08-20 13:46:48', 303968118)[0m
|
18757
|
+
[1m[35m (1.3ms)[0m commit transaction
|
18758
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18759
|
+
-----------------------------
|
18760
|
+
PostTest: test_get_app_models
|
18761
|
+
-----------------------------
|
18762
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18763
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
18764
|
+
---------------------------------------------------------------------
|
18765
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
18766
|
+
---------------------------------------------------------------------
|
18767
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18768
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-08-20 13:46:48 UTC', '2023-08-20 13:46:48 UTC');[0m
|
18769
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
18770
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18771
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
18772
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18773
|
+
------------------------------------------------------------------------
|
18774
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
18775
|
+
------------------------------------------------------------------------
|
18776
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
18777
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1[0m
|
18778
|
+
[1m[35m (0.2ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-08-20 13:46:48 UTC', '2023-08-20 13:46:48 UTC');
|
18779
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18780
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
18781
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18782
|
+
-----------------------------------------------------------------------
|
18783
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
18784
|
+
-----------------------------------------------------------------------
|
18785
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18786
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18787
|
+
---------------------------------------------------------------------------
|
18788
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
18789
|
+
---------------------------------------------------------------------------
|
18790
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
18791
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18792
|
+
------------------------------------------
|
18793
|
+
DeforestTest: test_parse_and_save_log_file
|
18794
|
+
------------------------------------------
|
18795
|
+
[1m[35m (0.5ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-20 13:46:48 UTC', '2023-08-20 13:46:48 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-20 13:46:48 UTC', '2023-08-20 13:46:48 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-20 13:46:48 UTC', '2023-08-20 13:46:48 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-20 13:46:48 UTC', '2023-08-20 13:46:48 UTC');
|
18796
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
18797
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
18798
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
18799
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
18800
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
18801
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18802
|
+
-----------------------------------
|
18803
|
+
DeforestTest: test_insert_into_logs
|
18804
|
+
-----------------------------------
|
18805
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18806
|
+
[1m[35m (0.0ms)[0m begin transaction
|
18807
|
+
--------------------------------------
|
18808
|
+
Deforest::LogTest: test_get_model_name
|
18809
|
+
--------------------------------------
|
18810
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
18811
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18812
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18813
|
+
----------------------------------
|
18814
|
+
Deforest::LogTest: test_percentile
|
18815
|
+
----------------------------------
|
18816
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
18817
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
18818
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18819
|
+
-----------------------------------------------------
|
18820
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
18821
|
+
-----------------------------------------------------
|
18822
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18823
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18824
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
18825
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
18826
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
18827
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18828
|
+
[1m[36mFixture Delete (0.9ms)[0m [1m[31mDELETE FROM "posts"[0m
|
18829
|
+
[1m[36mFixture Insert (0.7ms)[0m [1m[32mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:11:47.890174', '2023-08-20 14:11:47.890174', 980190962)[0m
|
18830
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:11:47.890174', '2023-08-20 14:11:47.890174', 298486374)[0m
|
18831
|
+
[1m[36mFixture Delete (0.5ms)[0m [1m[31mDELETE FROM "deforest_logs"[0m
|
18832
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-20 14:11:47.894719', '2023-08-20 14:11:47.894719', 980190962)[0m
|
18833
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-20 14:11:47.894719', '2023-08-20 14:11:47.894719', 298486374)[0m
|
18834
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-20 14:11:47.894719', '2023-08-20 14:11:47.894719', 113629430)[0m
|
18835
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-20 14:11:47.894719', '2023-08-20 14:11:47.894719', 933434481)[0m
|
18836
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-20 14:11:47.894719', '2023-08-20 14:11:47.894719', 303968118)[0m
|
18837
|
+
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
18838
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
18839
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18840
|
+
---------------------------------------------------------------------------
|
18841
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
18842
|
+
---------------------------------------------------------------------------
|
18843
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18844
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18845
|
+
-----------------------------------------------------------------------
|
18846
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
18847
|
+
-----------------------------------------------------------------------
|
18848
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18849
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18850
|
+
-----------------------------------
|
18851
|
+
DeforestTest: test_insert_into_logs
|
18852
|
+
-----------------------------------
|
18853
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18854
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18855
|
+
------------------------------------------
|
18856
|
+
DeforestTest: test_parse_and_save_log_file
|
18857
|
+
------------------------------------------
|
18858
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-20 14:11:47 UTC', '2023-08-20 14:11:47 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-20 14:11:47 UTC', '2023-08-20 14:11:47 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-20 14:11:47 UTC', '2023-08-20 14:11:47 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-20 14:11:47 UTC', '2023-08-20 14:11:47 UTC');[0m
|
18859
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"], ["LIMIT", 1]]
|
18860
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/post.rb"], ["LIMIT", 1]]
|
18861
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"], ["LIMIT", 1]]
|
18862
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"], ["LIMIT", 1]]
|
18863
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
18864
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18865
|
+
------------------------------------------------------------------------
|
18866
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
18867
|
+
------------------------------------------------------------------------
|
18868
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18869
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
18870
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-08-20 14:11:47 UTC', '2023-08-20 14:11:47 UTC');[0m
|
18871
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18872
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
18873
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18874
|
+
---------------------------------------------------------------------
|
18875
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
18876
|
+
---------------------------------------------------------------------
|
18877
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18878
|
+
[1m[35m (1.0ms)[0m [1m[32mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-08-20 14:11:47 UTC', '2023-08-20 14:11:47 UTC');[0m
|
18879
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
18880
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18881
|
+
[1m[35m (4.1ms)[0m [1m[31mrollback transaction[0m
|
18882
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
18883
|
+
-----------------------------
|
18884
|
+
PostTest: test_get_app_models
|
18885
|
+
-----------------------------
|
18886
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18887
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18888
|
+
-----------------------------------------------------
|
18889
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
18890
|
+
-----------------------------------------------------
|
18891
|
+
[1m[36mDeforest::Log Load (0.3ms)[0m [1m[34mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18892
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18893
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
18894
|
+
--------------------------------------
|
18895
|
+
Deforest::LogTest: test_get_model_name
|
18896
|
+
--------------------------------------
|
18897
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
18898
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18899
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18900
|
+
----------------------------------
|
18901
|
+
Deforest::LogTest: test_percentile
|
18902
|
+
----------------------------------
|
18903
|
+
[1m[36mDeforest::Log Load (0.3ms)[0m [1m[34mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18904
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18905
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
18906
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
18907
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
18908
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18909
|
+
[1m[36mFixture Delete (1.0ms)[0m [1m[31mDELETE FROM "posts"[0m
|
18910
|
+
[1m[36mFixture Insert (0.7ms)[0m [1m[32mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:23:55.818117', '2023-08-20 14:23:55.818117', 980190962)[0m
|
18911
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:23:55.818117', '2023-08-20 14:23:55.818117', 298486374)[0m
|
18912
|
+
[1m[36mFixture Delete (0.7ms)[0m [1m[31mDELETE FROM "deforest_logs"[0m
|
18913
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-20 14:23:55.822553', '2023-08-20 14:23:55.822553', 980190962)[0m
|
18914
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-20 14:23:55.822553', '2023-08-20 14:23:55.822553', 298486374)[0m
|
18915
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-20 14:23:55.822553', '2023-08-20 14:23:55.822553', 113629430)[0m
|
18916
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-20 14:23:55.822553', '2023-08-20 14:23:55.822553', 933434481)[0m
|
18917
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-20 14:23:55.822553', '2023-08-20 14:23:55.822553', 303968118)[0m
|
18918
|
+
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
18919
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
18920
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18921
|
+
-----------------------------
|
18922
|
+
PostTest: test_get_app_models
|
18923
|
+
-----------------------------
|
18924
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
18925
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18926
|
+
------------------------------------------------------------------------
|
18927
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
18928
|
+
------------------------------------------------------------------------
|
18929
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18930
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
18931
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-08-20 14:23:55 UTC', '2023-08-20 14:23:55 UTC');[0m
|
18932
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18933
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
18934
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
18935
|
+
---------------------------------------------------------------------
|
18936
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
18937
|
+
---------------------------------------------------------------------
|
18938
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18939
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-08-20 14:23:55 UTC', '2023-08-20 14:23:55 UTC');[0m
|
18940
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
18941
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
18942
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
18943
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18944
|
+
-----------------------------------------------------------------------
|
18945
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
18946
|
+
-----------------------------------------------------------------------
|
18947
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18948
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18949
|
+
---------------------------------------------------------------------------
|
18950
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
18951
|
+
---------------------------------------------------------------------------
|
18952
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18953
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
18954
|
+
-----------------------------------
|
18955
|
+
DeforestTest: test_insert_into_logs
|
18956
|
+
-----------------------------------
|
18957
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18958
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
18959
|
+
------------------------------------------
|
18960
|
+
DeforestTest: test_parse_and_save_log_file
|
18961
|
+
------------------------------------------
|
18962
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-20 14:23:55 UTC', '2023-08-20 14:23:55 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-20 14:23:55 UTC', '2023-08-20 14:23:55 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-20 14:23:55 UTC', '2023-08-20 14:23:55 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-20 14:23:55 UTC', '2023-08-20 14:23:55 UTC');[0m
|
18963
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"], ["LIMIT", 1]]
|
18964
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/post.rb"], ["LIMIT", 1]]
|
18965
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"], ["LIMIT", 1]]
|
18966
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"], ["LIMIT", 1]]
|
18967
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
18968
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
18969
|
+
-----------------------------------------------------
|
18970
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
18971
|
+
-----------------------------------------------------
|
18972
|
+
[1m[36mDeforest::Log Load (0.5ms)[0m [1m[34mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18973
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18974
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18975
|
+
--------------------------------------
|
18976
|
+
Deforest::LogTest: test_get_model_name
|
18977
|
+
--------------------------------------
|
18978
|
+
[1m[36mDeforest::Log Load (0.3ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
18979
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
18980
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
18981
|
+
----------------------------------
|
18982
|
+
Deforest::LogTest: test_percentile
|
18983
|
+
----------------------------------
|
18984
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1m[34mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
18985
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
18986
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
18987
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
18988
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
18989
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
18990
|
+
[1m[36mFixture Delete (0.3ms)[0m [1m[31mDELETE FROM "posts"[0m
|
18991
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:24:27.647690', '2023-08-20 14:24:27.647690', 980190962)[0m
|
18992
|
+
[1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:24:27.647690', '2023-08-20 14:24:27.647690', 298486374)[0m
|
18993
|
+
[1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "deforest_logs"[0m
|
18994
|
+
[1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-20 14:24:27.649614', '2023-08-20 14:24:27.649614', 980190962)[0m
|
18995
|
+
[1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-20 14:24:27.649614', '2023-08-20 14:24:27.649614', 298486374)[0m
|
18996
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-20 14:24:27.649614', '2023-08-20 14:24:27.649614', 113629430)[0m
|
18997
|
+
[1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-20 14:24:27.649614', '2023-08-20 14:24:27.649614', 933434481)[0m
|
18998
|
+
[1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-20 14:24:27.649614', '2023-08-20 14:24:27.649614', 303968118)[0m
|
18999
|
+
[1m[35m (2.5ms)[0m [1m[36mcommit transaction[0m
|
19000
|
+
[1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
19001
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
19002
|
+
-----------------------------------
|
19003
|
+
DeforestTest: test_insert_into_logs
|
19004
|
+
-----------------------------------
|
19005
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
19006
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
19007
|
+
-----------------------------------------------------------------------
|
19008
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
19009
|
+
-----------------------------------------------------------------------
|
19010
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
19011
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
19012
|
+
---------------------------------------------------------------------------
|
19013
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
19014
|
+
---------------------------------------------------------------------------
|
19015
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
19016
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
19017
|
+
------------------------------------------
|
19018
|
+
DeforestTest: test_parse_and_save_log_file
|
19019
|
+
------------------------------------------
|
19020
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-20 14:24:27 UTC', '2023-08-20 14:24:27 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-20 14:24:27 UTC', '2023-08-20 14:24:27 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-20 14:24:27 UTC', '2023-08-20 14:24:27 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-20 14:24:27 UTC', '2023-08-20 14:24:27 UTC');[0m
|
19021
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"], ["LIMIT", 1]]
|
19022
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/post.rb"], ["LIMIT", 1]]
|
19023
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"], ["LIMIT", 1]]
|
19024
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT ?[0m [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"], ["LIMIT", 1]]
|
19025
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
19026
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
19027
|
+
-----------------------------------------------------
|
19028
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
19029
|
+
-----------------------------------------------------
|
19030
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1m[34mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
19031
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
19032
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
19033
|
+
--------------------------------------
|
19034
|
+
Deforest::LogTest: test_get_model_name
|
19035
|
+
--------------------------------------
|
19036
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1m[34mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]]
|
19037
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
19038
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
19039
|
+
----------------------------------
|
19040
|
+
Deforest::LogTest: test_percentile
|
19041
|
+
----------------------------------
|
19042
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1m[34mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
19043
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
19044
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
19045
|
+
------------------------------------------------------------------------
|
19046
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
19047
|
+
------------------------------------------------------------------------
|
19048
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19049
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
19050
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-08-20 14:24:27 UTC', '2023-08-20 14:24:27 UTC');[0m
|
19051
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19052
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
19053
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
19054
|
+
---------------------------------------------------------------------
|
19055
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
19056
|
+
---------------------------------------------------------------------
|
19057
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19058
|
+
[1m[35m (0.3ms)[0m [1m[32mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-08-20 14:24:27 UTC', '2023-08-20 14:24:27 UTC');[0m
|
19059
|
+
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
19060
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19061
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
19062
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
19063
|
+
-----------------------------
|
19064
|
+
PostTest: test_get_app_models
|
19065
|
+
-----------------------------
|
19066
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
19067
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19068
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19069
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "posts"[0m
|
19070
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:25:38', '2023-08-20 14:25:38', 980190962)
|
19071
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:25:38', '2023-08-20 14:25:38', 298486374)[0m
|
19072
|
+
[1m[35mFixture Delete (0.0ms)[0m DELETE FROM "deforest_logs"
|
19073
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-20 14:25:38', '2023-08-20 14:25:38', 980190962)[0m
|
19074
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-20 14:25:38', '2023-08-20 14:25:38', 298486374)
|
19075
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-20 14:25:38', '2023-08-20 14:25:38', 113629430)[0m
|
19076
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-20 14:25:38', '2023-08-20 14:25:38', 933434481)
|
19077
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-20 14:25:38', '2023-08-20 14:25:38', 303968118)[0m
|
19078
|
+
[1m[35m (1.8ms)[0m commit transaction
|
19079
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19080
|
+
------------------------------------------
|
19081
|
+
DeforestTest: test_parse_and_save_log_file
|
19082
|
+
------------------------------------------
|
19083
|
+
[1m[35m (0.5ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-20 14:25:38 UTC', '2023-08-20 14:25:38 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-20 14:25:38 UTC', '2023-08-20 14:25:38 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-20 14:25:38 UTC', '2023-08-20 14:25:38 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-20 14:25:38 UTC', '2023-08-20 14:25:38 UTC');
|
19084
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
19085
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
19086
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
19087
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
19088
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
19089
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19090
|
+
---------------------------------------------------------------------------
|
19091
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
19092
|
+
---------------------------------------------------------------------------
|
19093
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
19094
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19095
|
+
-----------------------------------------------------------------------
|
19096
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
19097
|
+
-----------------------------------------------------------------------
|
19098
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
19099
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19100
|
+
-----------------------------------
|
19101
|
+
DeforestTest: test_insert_into_logs
|
19102
|
+
-----------------------------------
|
19103
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19104
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19105
|
+
-----------------------------------------------------
|
19106
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
19107
|
+
-----------------------------------------------------
|
19108
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
19109
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19110
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19111
|
+
--------------------------------------
|
19112
|
+
Deforest::LogTest: test_get_model_name
|
19113
|
+
--------------------------------------
|
19114
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1 [["id", 980190962]]
|
19115
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19116
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19117
|
+
----------------------------------
|
19118
|
+
Deforest::LogTest: test_percentile
|
19119
|
+
----------------------------------
|
19120
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
19121
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19122
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19123
|
+
---------------------------------------------------------------------
|
19124
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
19125
|
+
---------------------------------------------------------------------
|
19126
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19127
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-08-20 14:25:38 UTC', '2023-08-20 14:25:38 UTC');[0m
|
19128
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
19129
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19130
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
19131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19132
|
+
------------------------------------------------------------------------
|
19133
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
19134
|
+
------------------------------------------------------------------------
|
19135
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19136
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1[0m
|
19137
|
+
[1m[35m (0.2ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-08-20 14:25:38 UTC', '2023-08-20 14:25:38 UTC');
|
19138
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19139
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
19140
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19141
|
+
-----------------------------
|
19142
|
+
PostTest: test_get_app_models
|
19143
|
+
-----------------------------
|
19144
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19145
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19146
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19147
|
+
[1m[36mFixture Delete (1.0ms)[0m [1mDELETE FROM "posts"[0m
|
19148
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:36:20', '2023-08-20 14:36:20', 980190962)
|
19149
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:36:20', '2023-08-20 14:36:20', 298486374)[0m
|
19150
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "deforest_logs"
|
19151
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-20 14:36:20', '2023-08-20 14:36:20', 980190962)[0m
|
19152
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-20 14:36:20', '2023-08-20 14:36:20', 298486374)
|
19153
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-20 14:36:20', '2023-08-20 14:36:20', 113629430)[0m
|
19154
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-20 14:36:20', '2023-08-20 14:36:20', 933434481)
|
19155
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-20 14:36:20', '2023-08-20 14:36:20', 303968118)[0m
|
19156
|
+
[1m[35m (1.1ms)[0m commit transaction
|
19157
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19158
|
+
-----------------------------------------------------------------------
|
19159
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
19160
|
+
-----------------------------------------------------------------------
|
19161
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19162
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19163
|
+
---------------------------------------------------------------------------
|
19164
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
19165
|
+
---------------------------------------------------------------------------
|
19166
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
19167
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19168
|
+
-----------------------------------
|
19169
|
+
DeforestTest: test_insert_into_logs
|
19170
|
+
-----------------------------------
|
19171
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
19172
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19173
|
+
------------------------------------------
|
19174
|
+
DeforestTest: test_parse_and_save_log_file
|
19175
|
+
------------------------------------------
|
19176
|
+
[1m[35m (0.3ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-20 14:36:20 UTC', '2023-08-20 14:36:20 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-20 14:36:20 UTC', '2023-08-20 14:36:20 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-20 14:36:20 UTC', '2023-08-20 14:36:20 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-20 14:36:20 UTC', '2023-08-20 14:36:20 UTC');
|
19177
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
19178
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
19179
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
19180
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
19181
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
19182
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19183
|
+
---------------------------------------------------------------------
|
19184
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
19185
|
+
---------------------------------------------------------------------
|
19186
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19187
|
+
[1m[35m (0.3ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-08-20 14:36:20 UTC', '2023-08-20 14:36:20 UTC');
|
19188
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts"[0m
|
19189
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19190
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
19191
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19192
|
+
------------------------------------------------------------------------
|
19193
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
19194
|
+
------------------------------------------------------------------------
|
19195
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19196
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1
|
19197
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-08-20 14:36:20 UTC', '2023-08-20 14:36:20 UTC');[0m
|
19198
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19199
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
19200
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19201
|
+
-----------------------------
|
19202
|
+
PostTest: test_get_app_models
|
19203
|
+
-----------------------------
|
19204
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19205
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19206
|
+
-----------------------------------------------------
|
19207
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
19208
|
+
-----------------------------------------------------
|
19209
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
19210
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19211
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19212
|
+
----------------------------------
|
19213
|
+
Deforest::LogTest: test_percentile
|
19214
|
+
----------------------------------
|
19215
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
19216
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19217
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19218
|
+
--------------------------------------
|
19219
|
+
Deforest::LogTest: test_get_model_name
|
19220
|
+
--------------------------------------
|
19221
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
19222
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19223
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19224
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19225
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "posts"[0m
|
19226
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:53:27', '2023-08-20 14:53:27', 980190962)
|
19227
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-08-20 14:53:27', '2023-08-20 14:53:27', 298486374)[0m
|
19228
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "deforest_logs"
|
19229
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-08-20 14:53:27', '2023-08-20 14:53:27', 980190962)[0m
|
19230
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-08-20 14:53:27', '2023-08-20 14:53:27', 298486374)
|
19231
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-08-20 14:53:27', '2023-08-20 14:53:27', 113629430)[0m
|
19232
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-08-20 14:53:27', '2023-08-20 14:53:27', 933434481)
|
19233
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-08-20 14:53:27', '2023-08-20 14:53:27', 303968118)[0m
|
19234
|
+
[1m[35m (1.2ms)[0m commit transaction
|
19235
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19236
|
+
-----------------------------
|
19237
|
+
PostTest: test_get_app_models
|
19238
|
+
-----------------------------
|
19239
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
19240
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19241
|
+
---------------------------------------------------------------------
|
19242
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
19243
|
+
---------------------------------------------------------------------
|
19244
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19245
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-08-20 14:53:27 UTC', '2023-08-20 14:53:27 UTC');[0m
|
19246
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
19247
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19248
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
19249
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19250
|
+
------------------------------------------------------------------------
|
19251
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
19252
|
+
------------------------------------------------------------------------
|
19253
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19254
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1[0m
|
19255
|
+
[1m[35m (0.2ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-08-20 14:53:27 UTC', '2023-08-20 14:53:27 UTC');
|
19256
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19257
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
19258
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19259
|
+
-----------------------------------------------------
|
19260
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
19261
|
+
-----------------------------------------------------
|
19262
|
+
[1m[35mDeforest::Log Load (0.2ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
19263
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19264
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19265
|
+
--------------------------------------
|
19266
|
+
Deforest::LogTest: test_get_model_name
|
19267
|
+
--------------------------------------
|
19268
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
19269
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19270
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19271
|
+
----------------------------------
|
19272
|
+
Deforest::LogTest: test_percentile
|
19273
|
+
----------------------------------
|
19274
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
19275
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19276
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19277
|
+
-----------------------------------
|
19278
|
+
DeforestTest: test_insert_into_logs
|
19279
|
+
-----------------------------------
|
19280
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19281
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19282
|
+
---------------------------------------------------------------------------
|
19283
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
19284
|
+
---------------------------------------------------------------------------
|
19285
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
19286
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19287
|
+
------------------------------------------
|
19288
|
+
DeforestTest: test_parse_and_save_log_file
|
19289
|
+
------------------------------------------
|
19290
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-08-20 14:53:27 UTC', '2023-08-20 14:53:27 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-08-20 14:53:27 UTC', '2023-08-20 14:53:27 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-08-20 14:53:27 UTC', '2023-08-20 14:53:27 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-08-20 14:53:27 UTC', '2023-08-20 14:53:27 UTC');[0m
|
19291
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
19292
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
19293
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
19294
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
19295
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
19296
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19297
|
+
-----------------------------------------------------------------------
|
19298
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
19299
|
+
-----------------------------------------------------------------------
|
19300
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19301
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19302
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19303
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19304
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "posts"[0m
|
19305
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-09-08 10:56:32', '2023-09-08 10:56:32', 980190962)
|
19306
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-09-08 10:56:32', '2023-09-08 10:56:32', 298486374)[0m
|
19307
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "deforest_logs"
|
19308
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-09-08 10:56:32', '2023-09-08 10:56:32', 980190962)[0m
|
19309
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-09-08 10:56:32', '2023-09-08 10:56:32', 298486374)
|
19310
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-09-08 10:56:32', '2023-09-08 10:56:32', 113629430)[0m
|
19311
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-09-08 10:56:32', '2023-09-08 10:56:32', 933434481)
|
19312
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-09-08 10:56:32', '2023-09-08 10:56:32', 303968118)[0m
|
19313
|
+
[1m[35m (1.2ms)[0m commit transaction
|
19314
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19315
|
+
------------------------------------------
|
19316
|
+
DeforestTest: test_parse_and_save_log_file
|
19317
|
+
------------------------------------------
|
19318
|
+
[1m[35m (0.3ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-09-08 10:56:32 UTC', '2023-09-08 10:56:32 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-09-08 10:56:32 UTC', '2023-09-08 10:56:32 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-09-08 10:56:32 UTC', '2023-09-08 10:56:32 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-09-08 10:56:32 UTC', '2023-09-08 10:56:32 UTC');
|
19319
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
19320
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
19321
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
19322
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
19323
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
19324
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19325
|
+
---------------------------------------------------------------------------
|
19326
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
19327
|
+
---------------------------------------------------------------------------
|
19328
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
19329
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19330
|
+
-----------------------------------------------------------------------
|
19331
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
19332
|
+
-----------------------------------------------------------------------
|
19333
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19334
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19335
|
+
-----------------------------------
|
19336
|
+
DeforestTest: test_insert_into_logs
|
19337
|
+
-----------------------------------
|
19338
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19339
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19340
|
+
-----------------------------
|
19341
|
+
PostTest: test_get_app_models
|
19342
|
+
-----------------------------
|
19343
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
19344
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19345
|
+
---------------------------------------------------------------------
|
19346
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
19347
|
+
---------------------------------------------------------------------
|
19348
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19349
|
+
[1m[35m (0.2ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-09-08 10:56:32 UTC', '2023-09-08 10:56:32 UTC');
|
19350
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts"[0m
|
19351
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19352
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
19353
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19354
|
+
------------------------------------------------------------------------
|
19355
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
19356
|
+
------------------------------------------------------------------------
|
19357
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19358
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1
|
19359
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-09-08 10:56:32 UTC', '2023-09-08 10:56:32 UTC');[0m
|
19360
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19361
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
19362
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19363
|
+
--------------------------------------
|
19364
|
+
Deforest::LogTest: test_get_model_name
|
19365
|
+
--------------------------------------
|
19366
|
+
[1m[36mDeforest::Log Load (0.4ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1[0m [["id", 980190962]]
|
19367
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19368
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19369
|
+
----------------------------------
|
19370
|
+
Deforest::LogTest: test_percentile
|
19371
|
+
----------------------------------
|
19372
|
+
[1m[35mDeforest::Log Load (0.2ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
19373
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
19374
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19375
|
+
-----------------------------------------------------
|
19376
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
19377
|
+
-----------------------------------------------------
|
19378
|
+
[1m[36mDeforest::Log Load (0.1ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
19379
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19380
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19381
|
+
[1m[35m (0.1ms)[0m begin transaction
|
19382
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "posts"[0m
|
19383
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-09-09 12:35:25', '2023-09-09 12:35:25', 980190962)
|
19384
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "author_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 1, '2023-09-09 12:35:25', '2023-09-09 12:35:25', 298486374)[0m
|
19385
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "deforest_logs"
|
19386
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/setting.rb', 27, 'refresh_cache', 2, '2023-09-09 12:35:25', '2023-09-09 12:35:25', 980190962)[0m
|
19387
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 2144, 'lock_user', 10, '2023-09-09 12:35:25', '2023-09-09 12:35:25', 298486374)
|
19388
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/doctor.rb', 33, 'open', 35, '2023-09-09 12:35:25', '2023-09-09 12:35:25', 113629430)[0m
|
19389
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 100, 'get_user_name', 100, '2023-09-09 12:35:25', '2023-09-09 12:35:25', 933434481)
|
19390
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "deforest_logs" ("file_name", "line_no", "method_name", "count", "created_at", "updated_at", "id") VALUES ('/Users/johndoe/workspace/app/models/user.rb', 200, 'get_email', 300, '2023-09-09 12:35:25', '2023-09-09 12:35:25', 303968118)[0m
|
19391
|
+
[1m[35m (1.0ms)[0m commit transaction
|
19392
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19393
|
+
---------------------------------------------------------------------
|
19394
|
+
PostTest: test_calling_a_model_class_method_should_create_a_log_entry
|
19395
|
+
---------------------------------------------------------------------
|
19396
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19397
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','4','get_titles', 1, '2023-09-09 12:35:25 UTC', '2023-09-09 12:35:25 UTC');[0m
|
19398
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
19399
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19400
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
19401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19402
|
+
------------------------------------------------------------------------
|
19403
|
+
PostTest: test_calling_a_model_instance_method_should_create_a_log_entry
|
19404
|
+
------------------------------------------------------------------------
|
19405
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "deforest_logs"
|
19406
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC LIMIT 1[0m
|
19407
|
+
[1m[35m (0.2ms)[0m INSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/akshaytakkar/workspace/deforest/test/dummy/app/models/post.rb','8','get_title_with_italics', 1, '2023-09-09 12:35:25 UTC', '2023-09-09 12:35:25 UTC');
|
19408
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "deforest_logs"[0m
|
19409
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
19410
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19411
|
+
-----------------------------
|
19412
|
+
PostTest: test_get_app_models
|
19413
|
+
-----------------------------
|
19414
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19415
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19416
|
+
--------------------------------------
|
19417
|
+
Deforest::LogTest: test_get_model_name
|
19418
|
+
--------------------------------------
|
19419
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."id" = ? LIMIT 1 [["id", 980190962]]
|
19420
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
19421
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19422
|
+
-----------------------------------------------------
|
19423
|
+
Deforest::LogTest: test_get_highlight_colors_for_file
|
19424
|
+
-----------------------------------------------------
|
19425
|
+
[1m[36mDeforest::Log Load (0.2ms)[0m [1mSELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"[0m
|
19426
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19427
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19428
|
+
----------------------------------
|
19429
|
+
Deforest::LogTest: test_percentile
|
19430
|
+
----------------------------------
|
19431
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT file_name, line_no, method_name, SUM(count) AS count_sum FROM "deforest_logs" WHERE (file_name like '%/app/models/%') GROUP BY "deforest_logs"."file_name", "deforest_logs"."line_no", "deforest_logs"."method_name"
|
19432
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
19433
|
+
[1m[35m (0.0ms)[0m begin transaction
|
19434
|
+
------------------------------------------
|
19435
|
+
DeforestTest: test_parse_and_save_log_file
|
19436
|
+
------------------------------------------
|
19437
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO deforest_logs (file_name, line_no, method_name, count, created_at, updated_at) VALUES ('/Users/johndoe/workspace/app/models/corporate.rb','2144','get_email', 1, '2023-09-09 12:35:25 UTC', '2023-09-09 12:35:25 UTC'),('/Users/johndoe/workspace/app/models/myuser.rb','120','get_name', 1, '2023-09-09 12:35:25 UTC', '2023-09-09 12:35:25 UTC'),('/Users/johndoe/workspace/app/models/post.rb','2211','get_title', 2, '2023-09-09 12:35:25 UTC', '2023-09-09 12:35:25 UTC'),('/Users/johndoe/workspace/app/models/comment.rb','879','get_body', 1, '2023-09-09 12:35:25 UTC', '2023-09-09 12:35:25 UTC');[0m
|
19438
|
+
[1m[35mDeforest::Log Load (0.1ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/corporate.rb"]]
|
19439
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/post.rb"]]
|
19440
|
+
[1m[35mDeforest::Log Load (0.0ms)[0m SELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1 [["file_name", "/Users/johndoe/workspace/app/models/myuser.rb"]]
|
19441
|
+
[1m[36mDeforest::Log Load (0.0ms)[0m [1mSELECT "deforest_logs".* FROM "deforest_logs" WHERE "deforest_logs"."file_name" = ? ORDER BY "deforest_logs"."id" DESC LIMIT 1[0m [["file_name", "/Users/johndoe/workspace/app/models/comment.rb"]]
|
19442
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
19443
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19444
|
+
-----------------------------------------------------------------------
|
19445
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_exist
|
19446
|
+
-----------------------------------------------------------------------
|
19447
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19448
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19449
|
+
---------------------------------------------------------------------------
|
19450
|
+
DeforestTest: test_initialize_db_sync_file_when_db_sync_file_does_not_exist
|
19451
|
+
---------------------------------------------------------------------------
|
19452
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
19453
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
19454
|
+
-----------------------------------
|
19455
|
+
DeforestTest: test_insert_into_logs
|
19456
|
+
-----------------------------------
|
19457
|
+
[1m[35m (0.0ms)[0m rollback transaction
|