checkoff 0.249.0 → 0.250.0

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.
data/sig/checkoff.rbs CHANGED
@@ -3598,20 +3598,6 @@ module Checkoff
3598
3598
  # sord warn - Asana::Client wasn't able to be resolved to a constant in this project
3599
3599
  attr_reader client: Asana::Client
3600
3600
  end
3601
-
3602
- # Remove TIME_BY_PERIOD redeclarations Sord emits on BaseAsana test subclasses.
3603
- module PruneRbiTestConstants
3604
- SUBCLASSES: untyped
3605
-
3606
- # _@param_ `klass`
3607
- def self.pattern_for: (String klass) -> Regexp
3608
-
3609
- # _@param_ `path`
3610
- def self.call: (String path) -> void
3611
-
3612
- # _@param_ `content`
3613
- def self.prune_subclasses: (String content) -> String
3614
- end
3615
3601
  end
3616
3602
 
3617
3603
  # include this to add ability to log at different levels
@@ -3659,1528 +3645,4 @@ module Asana
3659
3645
  def marshal_load: (::Hash[untyped, untyped] data) -> void
3660
3646
  end
3661
3647
  end
3662
- end
3663
-
3664
- # :nocov:
3665
- # Module which adds helpers to run tests as if it was a specific date.
3666
- module TestDate
3667
- TIME_BY_PERIOD: untyped
3668
-
3669
- def mock_date: () -> void
3670
-
3671
- def time_by_period: (untyped zone) -> untyped
3672
-
3673
- def mock_now_with_zone: (untyped zone) -> void
3674
-
3675
- def mock_now: () -> void
3676
-
3677
- attr_accessor time_period: untyped
3678
-
3679
- attr_accessor mock_date_str: untyped
3680
- end
3681
-
3682
- class TestTags < ClassTest
3683
- extend Forwardable
3684
-
3685
- def test_tag_or_raise_raises: () -> void
3686
-
3687
- def test_tag_or_raise: () -> void
3688
-
3689
- def expect_workspace_pulled: () -> untyped
3690
-
3691
- def allow_tags_named: () -> void
3692
-
3693
- def expect_tags_pulled: (untyped tag_arr) -> void
3694
-
3695
- def test_tag: () -> void
3696
-
3697
- def mock_tasks: (?only_uncompleted: untyped) -> void
3698
-
3699
- def build_task_params: (untyped only_uncompleted) -> void
3700
-
3701
- def build_response_body: () -> void
3702
-
3703
- def setup_client_expects: (untyped task_endpoint, untyped task_params, untyped merged_task_options) -> void
3704
-
3705
- def setup_response_expects: (untyped response_body) -> void
3706
-
3707
- def setup_collection_expects: () -> void
3708
-
3709
- def generate_task_options: () -> void
3710
-
3711
- def generate_merged_task_options: () -> void
3712
-
3713
- def generate_task_endpoint: () -> void
3714
-
3715
- def projects: () -> void
3716
-
3717
- def test_tasks: () -> void
3718
-
3719
- def test_tasks_with_completed: () -> void
3720
-
3721
- def respond_like_instance_of: () -> void
3722
-
3723
- def respond_like: () -> void
3724
-
3725
- def class_under_test: () -> void
3726
- end
3727
-
3728
- # Unit test Asana-related classes
3729
- class BaseAsana < ClassTest
3730
- include TestDate
3731
-
3732
- def task_options: (?extra_fields: untyped) -> void
3733
-
3734
- def task_options_with_completed: () -> void
3735
-
3736
- def mock_date: () -> void
3737
-
3738
- def time_by_period: (untyped zone) -> untyped
3739
-
3740
- def mock_now_with_zone: (untyped zone) -> void
3741
-
3742
- def mock_now: () -> void
3743
- end
3744
-
3745
- # Test a class that uses initializer mocks.
3746
- class ClassTest < Minitest::Test
3747
- # Implement 'class_under_test' returning the class name to be
3748
- # initialized with keyword mocks
3749
- #
3750
- # obj = get_test_object do
3751
- # # Go ahead and use concrete value for constructor arg
3752
- # @mocks[:some_constructor_arg] = 123
3753
- # end
3754
- def get_test_object: (?untyped clazz) -> void
3755
-
3756
- def respond_like_instance_of: () -> void
3757
-
3758
- def respond_like: () -> void
3759
-
3760
- def create_object: (?untyped clazz) -> void
3761
- end
3762
-
3763
- # Test the Checkoff::Tasks class
3764
- class TestTasks < BaseAsana
3765
- extend Forwardable
3766
- TIME_BY_PERIOD: untyped
3767
-
3768
- def expect_now_pulled: () -> void
3769
-
3770
- def expect_due_on_parsed: (less_than_now: untyped) -> void
3771
-
3772
- def expect_start_on_parsed: (less_than_now: untyped) -> void
3773
-
3774
- def expect_start_at_parsed: (less_than_now: untyped) -> void
3775
-
3776
- def mock_task_ready_false_due_in_future_on_date: () -> void
3777
-
3778
- def test_task_ready_false_due_in_future_on_date: () -> void
3779
-
3780
- def mock_task_ready_true_start_in_past: () -> untyped
3781
-
3782
- def test_task_ready_true_start_in_past: () -> void
3783
-
3784
- def mock_task_ready_true_start_in_past_time: () -> void
3785
-
3786
- def test_task_ready_true_start_in_past_time: () -> void
3787
-
3788
- def expect_due_at_parsed: (less_than_now: untyped) -> void
3789
-
3790
- def mock_task_ready_false_due_in_future_at_time: () -> void
3791
-
3792
- def test_task_ready_false_due_in_future_at_time: () -> void
3793
-
3794
- def expect_dependency_gids_pulled: (untyped task, untyped dependency_gids) -> void
3795
-
3796
- def test_task_ready_true_no_due_anything: () -> void
3797
-
3798
- def expect_asana_tasks_client_pulled: () -> void
3799
-
3800
- def default_fields: () -> void
3801
-
3802
- def fields_including: (untyped extra_fields) -> void
3803
-
3804
- def expect_dependency_completion_pulled: (untyped dependency_gid, untyped dependency_full_task, untyped completed) -> void
3805
-
3806
- def mock_task_ready_false_dependency: () -> void
3807
-
3808
- def test_task_ready_false_dependency: () -> untyped
3809
-
3810
- def test_task_ready_false_dependency_cached: () -> void
3811
-
3812
- def allow_task_due: (
3813
- ?start_on: untyped,
3814
- ?start_at: untyped,
3815
- ?due_on: untyped,
3816
- ?due_at: untyped
3817
- ) -> void
3818
-
3819
- def allow_start_at_pulled: (untyped task, untyped start_at) -> void
3820
-
3821
- def allow_start_on_pulled: (untyped task, untyped start_on) -> untyped
3822
-
3823
- def allow_due_at_pulled: (untyped task, untyped due_at) -> void
3824
-
3825
- def allow_due_on_pulled: (untyped task, untyped due_on) -> untyped
3826
-
3827
- def test_url_of_task: () -> untyped
3828
-
3829
- def expect_task_created: () -> untyped
3830
-
3831
- def mock_add_task: () -> void
3832
-
3833
- def test_add_task: () -> void
3834
-
3835
- def expect_tasks_from_project_pulled: () -> untyped
3836
-
3837
- def expect_project_pulled: () -> void
3838
-
3839
- def expect_task_by_gid_pulled: (?extra_fields: untyped) -> untyped
3840
-
3841
- def expect_tasks_from_section_pulled: () -> untyped
3842
-
3843
- def projects: () -> untyped
3844
-
3845
- def expect_task_options_pulled: () -> untyped
3846
-
3847
- def mock_task_with_section: () -> untyped
3848
-
3849
- def test_task_with_section: () -> void
3850
-
3851
- def mock_task: () -> untyped
3852
-
3853
- def test_task: () -> void
3854
-
3855
- def test_in_portfolio_more_than_once: () -> void
3856
-
3857
- def test_in_portfolio_more_than_once_true: () -> void
3858
-
3859
- def test_gid_for_task: () -> void
3860
-
3861
- def test_gid_for_task_not_found: () -> void
3862
-
3863
- def test_task_to_h_delegates: () -> untyped
3864
-
3865
- def expect_default_workspace_name_pulled: () -> void
3866
-
3867
- def mock_in_portfolio_named_false_no_projects_no_memberships: () -> void
3868
-
3869
- def test_in_portfolio_named_false_no_projects_no_memberships: () -> void
3870
-
3871
- def mock_in_portfolio_named_false_no_projects_but_memberships: () -> void
3872
-
3873
- def test_in_portfolio_named_false_no_projects_but_memberships: () -> void
3874
-
3875
- def mock_in_portfolio_named_false_projects_wrong_memberships: () -> void
3876
-
3877
- def test_in_portfolio_named_false_projects_wrong_memberships: () -> void
3878
-
3879
- def test_date_or_time_field_by_name: () -> void
3880
-
3881
- def test_h_to_task: () -> void
3882
-
3883
- def test_all_dependent_tasks_empty: () -> void
3884
-
3885
- def test_all_dependent_tasks_one: () -> void
3886
-
3887
- def test_as_cache_key: () -> void
3888
-
3889
- def class_under_test: () -> void
3890
- end
3891
-
3892
- # Test the Checkoff::CLI class with mv subcommand
3893
- class TestCLIMv < Minitest::Test
3894
- def expect_workspaces_created: () -> void
3895
-
3896
- def expect_config_loaded: () -> void
3897
-
3898
- def expect_sections_created: () -> void
3899
-
3900
- def expect_tasks_created: () -> void
3901
-
3902
- def set_mocks: () -> void
3903
-
3904
- def get_test_object: () -> void
3905
-
3906
- def mock_mv_original_use_case: () -> void
3907
-
3908
- def test_mv_original_use_case: () -> void
3909
- end
3910
-
3911
- class TestEvents < ClassTest
3912
- extend Forwardable
3913
-
3914
- def mock_filter_asana_events_true: () -> void
3915
-
3916
- def test_filter_asana_events_true: () -> void
3917
-
3918
- def test_filter_asana_events_false: () -> void
3919
-
3920
- def class_under_test: () -> void
3921
-
3922
- def respond_like_instance_of: () -> void
3923
-
3924
- def respond_like: () -> void
3925
- end
3926
-
3927
- # No security (symbold denial of servie) issue; not building
3928
- # OpenStruct from untrusted user data.
3929
- #
3930
- # rubocop:disable Style/OpenStructUse
3931
- class MyOpenStruct < OpenStruct
3932
- def delete: (untyped sym) -> void
3933
-
3934
- def merge!: (untyped hash) -> untyped
3935
- end
3936
-
3937
- module Mocha
3938
- class Mock
3939
- def is_a?: (untyped expected) -> bool
3940
- end
3941
- end
3942
-
3943
- class TestTiming < ClassTest
3944
- extend Forwardable
3945
-
3946
- def test_in_period_this_week_date_true: () -> void
3947
-
3948
- def test_in_period_this_week_nil_true: () -> void
3949
-
3950
- def test_in_period_day_of_week_nil_false: () -> void
3951
-
3952
- def test_in_period_day_of_week_saturday_false: () -> void
3953
-
3954
- def test_in_period_indefinite_true: () -> void
3955
-
3956
- def test_in_period_bad_period: () -> void
3957
-
3958
- def test_in_period_bad_compound_period: () -> void
3959
-
3960
- def class_under_test: () -> void
3961
-
3962
- def respond_like_instance_of: () -> void
3963
-
3964
- def respond_like: () -> void
3965
- end
3966
-
3967
- class TestClients < ClassTest
3968
- extend Forwardable
3969
-
3970
- def expect_client_created: () -> void
3971
-
3972
- def mock_client: () -> void
3973
-
3974
- def test_client: () -> void
3975
-
3976
- def class_under_test: () -> void
3977
- end
3978
-
3979
- # Test the Checkoff::CLI class with the help option
3980
- class TestCLIHelp < Minitest::Test
3981
- def expect_workspaces_created: () -> void
3982
-
3983
- def expect_config_loaded: () -> void
3984
-
3985
- def expect_sections_created: () -> void
3986
-
3987
- def expect_tasks_created: () -> void
3988
-
3989
- def set_mocks: () -> untyped
3990
-
3991
- def get_test_object: () -> void
3992
-
3993
- def test_run_with_help_arg: () -> void
3994
- end
3995
-
3996
- # Test the Checkoff::CLI class with view subcommand
3997
- class TestCLIView < Minitest::Test
3998
- def expected_json_no_section_specified: () -> void
3999
-
4000
- def section_name_str: () -> void
4001
-
4002
- def project_name: () -> void
4003
-
4004
- def task_name: () -> void
4005
-
4006
- def expect_tasks_by_section_pulled: () -> void
4007
-
4008
- def expect_client_pulled: () -> void
4009
-
4010
- def mock_run_with_no_section_specified_normal_project: (due_on: untyped, due_at: untyped) -> void
4011
-
4012
- def expect_task_named: (untyped task, untyped task_name) -> void
4013
-
4014
- def expect_task_due_on: (untyped task, untyped due_on) -> void
4015
-
4016
- def expect_task_due_at: (untyped task, untyped due_at) -> void
4017
-
4018
- def three_tasks: () -> void
4019
-
4020
- def expect_task_queried: (
4021
- untyped task,
4022
- untyped task_name,
4023
- untyped due_on,
4024
- untyped due_at
4025
- ) -> void
4026
-
4027
- def expect_three_tasks_queried: (due_on: untyped, due_at: untyped) -> untyped
4028
-
4029
- def workspace_name: () -> void
4030
-
4031
- def allow_workspaces_created: () -> void
4032
-
4033
- def allow_config_loaded: () -> void
4034
-
4035
- def allow_sections_created: () -> void
4036
-
4037
- def allow_tasks_created: () -> void
4038
-
4039
- def allow_clients_created: () -> void
4040
-
4041
- def set_mocks: () -> void
4042
-
4043
- def get_test_object: () -> void
4044
-
4045
- def test_run_with_no_section_specified_normal_project: () -> void
4046
-
4047
- def expect_three_tasks_pulled_and_queried: (
4048
- project_name: untyped,
4049
- section_name: untyped,
4050
- due_on: untyped,
4051
- due_at: untyped
4052
- ) -> void
4053
-
4054
- def mock_view: (
4055
- project_name: untyped,
4056
- section_name: untyped,
4057
- due_at: untyped,
4058
- due_on: untyped
4059
- ) -> void
4060
-
4061
- def mock_view_specific_task: (section_name: untyped) -> void
4062
-
4063
- def test_view_specific_task_nil_section: () -> void
4064
-
4065
- def test_view_specific_task: () -> void
4066
-
4067
- def expected_json_section_specified: () -> void
4068
-
4069
- def mock_view_run_with_section_specified_empty_section: () -> void
4070
-
4071
- def test_view_run_with_section_specified_empty_section: () -> void
4072
-
4073
- def mock_view_run_with_section_specified_normal_project_colon_project: () -> untyped
4074
-
4075
- def test_view_run_with_section_specified_normal_project_colon_project: () -> untyped
4076
-
4077
- def mock_view_run_with_section_specified_normal_project: () -> void
4078
-
4079
- def test_view_run_with_section_specified_normal_project: () -> untyped
4080
-
4081
- def mock_run_with_no_project_specified: () -> void
4082
-
4083
- def test_run_with_no_project_specified: () -> void
4084
-
4085
- def expected_json_view_not_due: () -> untyped
4086
-
4087
- def test_view_not_due: () -> untyped
4088
-
4089
- def expected_json_view_due_at: () -> void
4090
-
4091
- def test_view_due_at: () -> untyped
4092
- end
4093
-
4094
- # Test the Checkoff::Projects class
4095
- class TestProjects < BaseAsana
4096
- extend Forwardable
4097
- TIME_BY_PERIOD: untyped
4098
-
4099
- def setup_config: () -> void
4100
-
4101
- def setup_projects_pulled: () -> void
4102
-
4103
- def sample_projects: () -> void
4104
-
4105
- def setup_projects_queried: (?workspace_gid: untyped) -> untyped
4106
-
4107
- def expect_tasks_found: (options: untyped) -> void
4108
-
4109
- def mock_tasks_from_project: (options: untyped) -> void
4110
-
4111
- def test_tasks_from_project_not_only_uncompleted: () -> void
4112
-
4113
- def test_tasks_from_project: () -> void
4114
-
4115
- def test_active_tasks: () -> void
4116
-
4117
- def setup_workspace_pulled: () -> void
4118
-
4119
- def setup_user_task_list_pulled: () -> void
4120
-
4121
- def mock_project_or_raise_unknown: () -> void
4122
-
4123
- def test_project_or_raise_unknown: () -> void
4124
-
4125
- def test_project_by_gid: () -> untyped
4126
-
4127
- def test_project_or_raise_my_tasks: () -> void
4128
-
4129
- def mock_project_my_tasks: () -> untyped
4130
-
4131
- def test_project_my_tasks: () -> void
4132
-
4133
- def test_project_to_h: () -> untyped
4134
-
4135
- def mock_test_in_period: () -> untyped
4136
-
4137
- def test_in_period: () -> void
4138
-
4139
- def mock_project_ready: () -> void
4140
-
4141
- def test_project_ready: () -> void
4142
-
4143
- def class_under_test: () -> void
4144
- end
4145
-
4146
- # Test the Checkoff::Sections class
4147
- class TestSections < BaseAsana
4148
- extend Forwardable
4149
- TIME_BY_PERIOD: untyped
4150
-
4151
- def test_section_task_names_no_tasks: () -> void
4152
-
4153
- def projects: () -> untyped
4154
-
4155
- def test_section_task_names: () -> void
4156
-
4157
- def mock_sections_or_raise: () -> void
4158
-
4159
- def test_sections_or_raise: () -> void
4160
-
4161
- def test_sections_or_raise_nil_project_name: () -> void
4162
-
4163
- def expect_my_tasks_pulled: (untyped project, untyped tasks_arr, untyped active_tasks_arr) -> void
4164
-
4165
- def expect_section_named: (untyped section, untyped name) -> void
4166
-
4167
- def expect_assignee_section_pulled: (untyped task, untyped section) -> void
4168
-
4169
- def expect_my_tasks_sections_pulled: () -> void
4170
-
4171
- def expect_my_tasks_tasks_pulled: () -> untyped
4172
-
4173
- def mock_tasks_by_section_my_tasks: () -> void
4174
-
4175
- def test_tasks_by_section_my_tasks: () -> void
4176
-
4177
- def test_tasks_by_section_nil_workspace_name: () -> untyped
4178
-
4179
- def test_tasks_by_section_nil_project_name: () -> void
4180
-
4181
- def test_tasks_by_section_some_in_empty_section: () -> void
4182
-
4183
- def expect_project_a_tasks_pulled: () -> void
4184
-
4185
- def test_tasks_by_section: () -> untyped
4186
-
4187
- def expect_named: (untyped task, untyped name) -> void
4188
-
4189
- def expect_tasks_pulled: (untyped project, untyped tasks_arr, untyped active_tasks_arr) -> void
4190
-
4191
- def expect_project_pulled: (untyped workspace, untyped project, untyped project_name) -> void
4192
-
4193
- def expect_task_project_memberships_queried: () -> untyped
4194
-
4195
- def expect_task_section_memberships_queried: (untyped section_name) -> untyped
4196
-
4197
- def expect_task_memberships_queried: (untyped section_name) -> untyped
4198
-
4199
- def expect_tasks_and_sections_pulled: (
4200
- untyped workspace,
4201
- untyped project,
4202
- untyped project_name,
4203
- untyped section_name
4204
- ) -> untyped
4205
-
4206
- def expect_project_gid_pulled: (untyped project, untyped gid) -> void
4207
-
4208
- def expect_sections_client_pulled: () -> untyped
4209
-
4210
- def expect_project_sections_pulled: (untyped project_gid, untyped sections_array) -> void
4211
-
4212
- def original_task_options: () -> void
4213
-
4214
- def fixed_task_options: (only_uncompleted: untyped) -> untyped
4215
-
4216
- def expect_tasks_api_called_for_section: (untyped section_gid, untyped task_list, only_uncompleted: untyped) -> void
4217
-
4218
- def expect_section_1_gid_pulled: () -> void
4219
-
4220
- def expect_section_2_gid_pulled: () -> untyped
4221
-
4222
- def expect_client_tasks_api_pulled: () -> untyped
4223
-
4224
- def expect_section_tasks_pulled: (
4225
- untyped section,
4226
- untyped section_gid,
4227
- untyped task_list,
4228
- only_uncompleted: untyped
4229
- ) -> untyped
4230
-
4231
- def test_tasks_not_only_uncompleted: () -> void
4232
-
4233
- def allow_section_1_name_pulled: () -> untyped
4234
-
4235
- def allow_section_2_name_pulled: () -> untyped
4236
-
4237
- def allow_empty_section_name_pulled: () -> untyped
4238
-
4239
- def mock_tasks_normal_project: (only_uncompleted: untyped) -> void
4240
-
4241
- def test_tasks_normal_project: () -> untyped
4242
-
4243
- def test_tasks_by_section_gid: () -> void
4244
-
4245
- def test_tasks_by_section_also_completed: () -> void
4246
-
4247
- def mock_tasks_inbox: () -> untyped
4248
-
4249
- def test_tasks_inbox: () -> untyped
4250
-
4251
- def test_tasks_section_not_found: () -> untyped
4252
-
4253
- def test_tasks_project_not_found: () -> untyped
4254
-
4255
- def test_previous_section: () -> void
4256
-
4257
- def test_previous_section_on_inbox_returns_nil: () -> untyped
4258
-
4259
- def test_section_by_gid: () -> void
4260
-
4261
- def test_section_by_gid_bad_server_data: () -> void
4262
-
4263
- def respond_like_instance_of: () -> void
4264
-
4265
- def respond_like: () -> void
4266
-
4267
- def class_under_test: () -> void
4268
- end
4269
-
4270
- class TestSubtasks < ClassTest
4271
- extend Forwardable
4272
-
4273
- def task_options: () -> void
4274
-
4275
- def subtask_options: () -> void
4276
-
4277
- # refute(subtasks.all_subtasks_completed?(task))
4278
- # end
4279
- def expect_active_subtasks_pulled: (untyped active_subtasks) -> untyped
4280
-
4281
- def allow_all_section_status_queried: () -> void
4282
-
4283
- # assert(subtasks.all_subtasks_completed?(task))
4284
- # end
4285
- def allow_subtask_section_status_queried: (untyped subtask, untyped result) -> untyped
4286
-
4287
- def allow_subtask_section_1_named: () -> void
4288
-
4289
- def allow_subtask_section_2_named: () -> void
4290
-
4291
- def allow_subtask_section_3_named: () -> void
4292
-
4293
- def allow_subtask_names_queried: () -> void
4294
-
4295
- def mock_by_section: () -> void
4296
-
4297
- def expect_raw_subtasks_pulled: () -> void
4298
-
4299
- def class_under_test: () -> void
4300
-
4301
- def respond_like_instance_of: () -> void
4302
-
4303
- def respond_like: () -> void
4304
- end
4305
-
4306
- class TestTimelines < ClassTest
4307
- extend Forwardable
4308
-
4309
- def test_task_dependent_on_previous_section_last_milestone_no_memberships: () -> void
4310
-
4311
- def mock_task_dependent_on_previous_section_last_milestone_false_no_dependencies: () -> void
4312
-
4313
- def test_task_dependent_on_previous_section_last_milestone_false_no_dependencies_: () -> void
4314
-
4315
- def expect_task_data_created: (untyped task, untyped task_data) -> void
4316
-
4317
- def expect_section_2_pulled: () -> untyped
4318
-
4319
- def expect_section_2_previous_section_called: () -> void
4320
-
4321
- def expect_section_1_gid_pulled: () -> void
4322
-
4323
- def expect_no_section_1_tasks: () -> void
4324
-
4325
- def mock_task_dependent_on_previous_section_last_milestone_true_no_tasks: () -> void
4326
-
4327
- def test_task_dependent_on_previous_section_last_milestone_true_no_tasks: () -> void
4328
-
4329
- def expect_section_1_tasks_pulled: () -> void
4330
-
4331
- def expect_milestone_queried: () -> void
4332
-
4333
- def mock_task_dependent_on_previous_section_last_milestone_true: () -> void
4334
-
4335
- def test_task_dependent_on_previous_section_last_milestone_true: () -> untyped
4336
-
4337
- def mock_task_dependent_on_previous_section_last_milestone_false_no_previous_section: () -> void
4338
-
4339
- def test_task_dependent_on_previous_section_last_milestone_false_no_previous_section: () -> void
4340
-
4341
- def test_last_task_milestone_depends_on_this_task_no_memberships: () -> void
4342
-
4343
- def expect_all_dependent_tasks_pulled: (untyped task, untyped dependents) -> untyped
4344
-
4345
- def expect_memberships_pulled: (untyped task, untyped memberships) -> void
4346
-
4347
- def expect_tasks_by_section_gid_pulled: (untyped tasks) -> void
4348
-
4349
- def expect_milestone_details_pulled: () -> void
4350
-
4351
- def expect_task_gid_pulled: () -> void
4352
-
4353
- def test_last_task_milestone_depends_on_this_task_false: () -> void
4354
-
4355
- def test_last_task_milestone_depends_on_this_task_no_milestone: () -> void
4356
-
4357
- def test_last_task_milestone_depends_on_this_task_is_last_milestone: () -> void
4358
-
4359
- def export_portfolio_projects_pulled: (untyped projects) -> void
4360
-
4361
- def test_last_task_milestone_depends_on_this_task_is_last_milestone_limited_to_portfolio_no_projects: () -> void
4362
-
4363
- def mock_last_task_milestone_depends_on_this_task_is_last_milestone_limited_to_portfolio: () -> void
4364
-
4365
- def test_last_task_milestone_depends_on_this_task_is_last_milestone_limited_to_portfolio: () -> void
4366
-
4367
- def test_init: () -> void
4368
-
4369
- def test_any_milestone_depends_on_this_task_false: () -> void
4370
-
4371
- def test_any_milestone_depends_on_this_task_true: () -> void
4372
-
4373
- def class_under_test: () -> void
4374
-
4375
- def respond_like_instance_of: () -> void
4376
-
4377
- def respond_like: () -> void
4378
- end
4379
-
4380
- class TestPortfolios < ClassTest
4381
- extend Forwardable
4382
-
4383
- def test_portfolio_or_raise_raises: () -> void
4384
-
4385
- def test_portfolio_or_raise: () -> void
4386
-
4387
- def expect_workspace_pulled: () -> untyped
4388
-
4389
- def allow_portfolios_named: () -> void
4390
-
4391
- def expect_portfolios_api_pulled: () -> void
4392
-
4393
- def expect_me_gid_pulled: () -> void
4394
-
4395
- def expect_portfolios_pulled: (untyped portfolio_arr) -> untyped
4396
-
4397
- def test_portfolio: () -> void
4398
-
4399
- def test_portfolio_by_gid: () -> void
4400
-
4401
- def test_projects_in_portfolios: () -> void
4402
-
4403
- def class_under_test: () -> void
4404
-
4405
- def respond_like_instance_of: () -> void
4406
-
4407
- def respond_like: () -> void
4408
- end
4409
-
4410
- # Test the Checkoff::Workspaces class
4411
- class TestWorkspaces < BaseAsana
4412
- extend Forwardable
4413
- TIME_BY_PERIOD: untyped
4414
-
4415
- def mock_workspace_or_raise_nil: () -> void
4416
-
4417
- def test_workspace_or_raise_nil: () -> void
4418
-
4419
- def mock_workspace_or_raise: () -> void
4420
-
4421
- def test_workspace_or_raise: () -> void
4422
-
4423
- def expect_default_workspace_gid_config_fetched: () -> void
4424
-
4425
- def test_default_workspace_gid: () -> void
4426
-
4427
- def test_default_workspace: () -> void
4428
-
4429
- def class_under_test: () -> void
4430
- end
4431
-
4432
- class TestAttachments < ClassTest
4433
- extend Forwardable
4434
-
4435
- def mock_create_attachment_from_url: (untyped url) -> void
4436
-
4437
- def test_create_attachment_from_url: () -> void
4438
-
4439
- # _@param_ `gid`
4440
- #
4441
- # _@param_ `url`
4442
- def expect_run_on_attachment: (String gid, String url) -> Mocha::Mock
4443
-
4444
- def capture_attachments_run: () -> String
4445
-
4446
- def test_run: () -> void
4447
-
4448
- def class_under_test: () -> void
4449
-
4450
- def respond_like_instance_of: () -> void
4451
-
4452
- def respond_like: () -> void
4453
- end
4454
-
4455
- # double to inject cache_method, pretending to be cache_method gem
4456
- class Class
4457
- def cache_method: (untyped method_id, ?untyped _ttl) -> void
4458
- end
4459
-
4460
- # double to inject cache_method_clear, pretending to be cache_method gem
4461
- module Kernel
4462
- def cache_method_clear: (untyped _method_id) -> void
4463
- end
4464
-
4465
- # Test the Checkoff::CLI class with quickadd subcommand
4466
- class TestCLIQuickadd < Minitest::Test
4467
- def workspace_name: () -> void
4468
-
4469
- def expect_workspaces_created: () -> void
4470
-
4471
- def expect_config_loaded: () -> void
4472
-
4473
- def expect_sections_created: () -> void
4474
-
4475
- def expect_tasks_created: () -> untyped
4476
-
4477
- def set_mocks: () -> untyped
4478
-
4479
- def get_test_object: () -> void
4480
-
4481
- def mock_quickadd: () -> void
4482
-
4483
- def test_quickadd: () -> void
4484
- end
4485
-
4486
- class TestCustomFields < ClassTest
4487
- extend Forwardable
4488
-
4489
- def test_custom_field_or_raise_raises: () -> void
4490
-
4491
- def test_custom_field_or_raise: () -> void
4492
-
4493
- def expect_workspace_pulled: () -> untyped
4494
-
4495
- def allow_custom_fields_named: () -> void
4496
-
4497
- def expect_custom_fields_pulled: (untyped custom_field_arr) -> void
4498
-
4499
- def test_custom_field: () -> void
4500
-
4501
- def class_under_test: () -> void
4502
- end
4503
-
4504
- # Test the Checkoff::MvSubcommand class used in CLI processing
4505
- class TestMvSubcommand < ClassTest
4506
- extend Forwardable
4507
-
4508
- def argument_to_name: (untyped arg) -> void
4509
-
4510
- def expect_project_pulled: (untyped workspace_name, untyped project_name, untyped project) -> void
4511
-
4512
- def expect_section_pulled: (
4513
- untyped workspace_name,
4514
- untyped project_name,
4515
- untyped section_name,
4516
- untyped section
4517
- ) -> void
4518
-
4519
- def expect_tasks_pulled: (
4520
- untyped workspace_name,
4521
- untyped project_name,
4522
- untyped section_name,
4523
- untyped tasks
4524
- ) -> void
4525
-
4526
- def expect_task_named: (untyped task, untyped task_name) -> void
4527
-
4528
- def expect_section_named: (untyped section, untyped section_name) -> void
4529
-
4530
- def expect_project_gid_pulled: (untyped project, untyped project_gid) -> void
4531
-
4532
- def expect_section_gid_pulled: (untyped section, untyped section_gid) -> void
4533
-
4534
- def expect_task_added_to_project: (untyped task, untyped project_gid, untyped section_gid) -> void
4535
-
4536
- def allow_logger_used: () -> void
4537
-
4538
- def set_initializer_arguments: () -> void
4539
-
4540
- def determine_to_workspace_name: (untyped from_workspace_arg, untyped to_workspace_arg) -> void
4541
-
4542
- def determine_to_project_name: (untyped from_project_name, untyped to_project_arg) -> void
4543
-
4544
- def determine_to_section_name: (untyped from_section_name, untyped to_section_arg) -> void
4545
-
4546
- def expect_task_added_to_section: (untyped task, untyped task_name) -> void
4547
-
4548
- def set_names: () -> void
4549
-
4550
- def expect_to_objects_pulled: () -> void
4551
-
4552
- def expect_run: () -> void
4553
-
4554
- def mock_run_to_different_workspace: () -> void
4555
-
4556
- def test_run_to_different_workspace: () -> void
4557
-
4558
- def mock_run_from_all_sections: () -> void
4559
-
4560
- def test_run_from_all_sections: () -> void
4561
-
4562
- def mock_run_from_regular_project: () -> void
4563
-
4564
- def test_run_from_regular_project: () -> void
4565
-
4566
- def mock_run_to_same_section_different_project: () -> void
4567
-
4568
- def test_run_to_same_section_different_project: () -> void
4569
-
4570
- def mock_run_with_explicit_to_project: () -> void
4571
-
4572
- def test_run_with_explicit_to_project: () -> void
4573
-
4574
- def mock_run_from_my_tasks: () -> void
4575
-
4576
- def test_run_from_my_tasks: () -> void
4577
-
4578
- def mock_init_default_workspace_not_implemented: () -> void
4579
-
4580
- def test_init_default_workspace_not_implemented: () -> void
4581
-
4582
- def test_init: () -> void
4583
-
4584
- def class_under_test: () -> void
4585
-
4586
- # Returns the value of attribute from_workspace_arg.
4587
- attr_reader from_workspace_arg: untyped
4588
-
4589
- # Returns the value of attribute from_project_arg.
4590
- attr_reader from_project_arg: untyped
4591
-
4592
- # Returns the value of attribute from_section_arg.
4593
- attr_reader from_section_arg: untyped
4594
-
4595
- # Returns the value of attribute to_workspace_arg.
4596
- attr_reader to_workspace_arg: untyped
4597
-
4598
- # Returns the value of attribute to_project_arg.
4599
- attr_reader to_project_arg: untyped
4600
-
4601
- # Returns the value of attribute to_section_arg.
4602
- attr_reader to_section_arg: untyped
4603
-
4604
- # Returns the value of attribute from_workspace_name.
4605
- attr_reader from_workspace_name: untyped
4606
-
4607
- # Returns the value of attribute from_project_name.
4608
- attr_reader from_project_name: untyped
4609
-
4610
- # Returns the value of attribute from_section_name.
4611
- attr_reader from_section_name: untyped
4612
-
4613
- # Returns the value of attribute to_workspace_name.
4614
- attr_reader to_workspace_name: untyped
4615
-
4616
- # Returns the value of attribute to_project_name.
4617
- attr_reader to_project_name: untyped
4618
-
4619
- # Returns the value of attribute to_section_name.
4620
- attr_reader to_section_name: untyped
4621
- end
4622
-
4623
- class TestTaskSearches < ClassTest
4624
- extend Forwardable
4625
-
4626
- def expect_workspace_pulled: () -> void
4627
-
4628
- def expect_workspace_gid_pulled: () -> void
4629
-
4630
- def expect_convert_params_called: () -> void
4631
-
4632
- def default_fields: () -> void
4633
-
4634
- def expect_client_get_called: () -> untyped
4635
-
4636
- def expect_search_response_queried: () -> void
4637
-
4638
- def expect_response_wrapped: (untyped response_array) -> untyped
4639
-
4640
- def expect_tasks_filtered: () -> void
4641
-
4642
- def expect_task_selector_queried: () -> void
4643
-
4644
- def mock_task_search: () -> void
4645
-
4646
- def projects: () -> void
4647
-
4648
- def test_task_search: () -> void
4649
-
4650
- def mock_task_search_overloaded: () -> void
4651
-
4652
- def test_as_cache_key: () -> void
4653
-
4654
- def test_raw_task_search_without_selector: () -> void
4655
-
4656
- # _@param_ `task_searches`
4657
- def mock_full_page_raw_task_search: (Checkoff::TaskSearches task_searches) -> ::Array[untyped]
4658
-
4659
- def test_raw_task_search_paginates_when_full_page: () -> void
4660
-
4661
- def class_under_test: () -> void
4662
-
4663
- def respond_like_instance_of: () -> void
4664
-
4665
- def respond_like: () -> void
4666
- end
4667
-
4668
- # rubocop:disable Metrics/ClassLength
4669
- class TestTaskSelectors < ClassTest
4670
- extend Forwardable
4671
-
4672
- def get_test_object: () -> Checkoff::TaskSelectors
4673
-
4674
- def task: () -> Mocha::Mock
4675
-
4676
- def test_filter_via_custom_field_gid_values_gids_no_enum_value: () -> void
4677
-
4678
- def test_filter_via_custom_field_gid_values_gids_no_enum_value_multi_enum: () -> void
4679
-
4680
- def test_filter_via_custom_field_gid_values_gids_no_enum_value_new_type: () -> void
4681
-
4682
- # not sure why this would be the case, so set an alarm so I can understand
4683
- def test_filter_via_custom_field_custom_field_not_enabled: () -> void
4684
-
4685
- def test_filter_via_custom_field_none_matched: () -> void
4686
-
4687
- def test_filter_via_custom_field_gid_values_gids_custom_field_not_provided: () -> void
4688
-
4689
- def test_filter_via_custom_field_gid_values_gids: () -> void
4690
-
4691
- def test_filter_via_invalid_syntax: () -> void
4692
-
4693
- def test_filter_via_custom_field_value_nil_false_found: () -> void
4694
-
4695
- def mock_filter_via_custom_field_gid_value_gid_nil: () -> void
4696
-
4697
- def test_filter_via_custom_field_gid_value_gid_nil: () -> void
4698
-
4699
- def test_filter_via_custom_field_value_custom_fields_not_provided: () -> void
4700
-
4701
- def test_filter_via_custom_field_value_nil_none_found: () -> void
4702
-
4703
- def test_filter_via_custom_field_value_gid_nil_none_found: () -> void
4704
-
4705
- def test_filter_via_task_selector_tag: () -> void
4706
-
4707
- def test_filter_via_task_selector_not: () -> void
4708
-
4709
- def test_filter_via_task_selector_and: () -> void
4710
-
4711
- def test_filter_via_task_selector_or: () -> void
4712
-
4713
- def test_filter_via_task_selector_simple: () -> void
4714
-
4715
- def test_filter_via_task_selector_ready: () -> void
4716
-
4717
- def expect_now_jan_1_2019: () -> void
4718
-
4719
- def expect_starts_jan_1_2019_midnight: () -> void
4720
-
4721
- def expect_no_incomplete_dependencies: () -> void
4722
-
4723
- def mock_filter_via_task_selector_ready_between_relative_starts_no: () -> untyped
4724
-
4725
- def test_filter_via_task_selector_ready_between_relative_starts_now: () -> void
4726
-
4727
- def mock_filter_via_task_selector_ready_between_relative_starts_today: () -> void
4728
-
4729
- def test_filter_via_task_selector_ready_between_relative_starts_today: () -> void
4730
-
4731
- def mock_filter_via_task_selector_ready_between_relative_due_now: () -> void
4732
-
4733
- def test_filter_via_task_selector_ready_between_relative_due_now: () -> void
4734
-
4735
- def mock_due_on_jan_1_2019: () -> untyped
4736
-
4737
- def expect_no_start: () -> void
4738
-
4739
- def mock_filter_via_task_selector_ready_between_relative_due_today: () -> untyped
4740
-
4741
- def test_filter_via_task_selector_ready_between_relative_due_today: () -> untyped
4742
-
4743
- def expect_no_due: () -> untyped
4744
-
4745
- def mock_filter_via_task_selector_ready_between_relative_no_due: () -> untyped
4746
-
4747
- def test_filter_via_task_selector_ready_between_relative_no_due: () -> untyped
4748
-
4749
- def expect_due_jan_1_2099: () -> untyped
4750
-
4751
- def mock_filter_via_task_selector_ready_between_relative_due_far_future: () -> untyped
4752
-
4753
- def test_filter_via_task_selector_ready_between_relative_due_far_future: () -> untyped
4754
-
4755
- def expect_incomplete_dependencies: () -> untyped
4756
-
4757
- def expect_tasks_not_mocked: () -> untyped
4758
-
4759
- def test_filter_via_task_selector_unassigned: () -> void
4760
-
4761
- def test_filter_via_custom_field_gid_value_contains_all_gids: () -> void
4762
-
4763
- def test_filter_via_task_selector_due_date_set: () -> void
4764
-
4765
- def test_filter_via_task_selector_custom_field_less_than_n_days_from_now: () -> void
4766
-
4767
- def test_filter_via_task_selector_custom_field_less_than_n_days_from_now_not_set: () -> untyped
4768
-
4769
- def test_filter_via_task_selector_custom_field_less_than_n_days_from_now_custom_field_not_found: () -> void
4770
-
4771
- def test_filter_via_task_selector_custom_field_greater_than_or_equal_to_n_days_from_now: () -> void
4772
-
4773
- def test_filter_via_task_selector_custom_field_greater_than_or_equal_to_n_days_from_now_nil: () -> void
4774
-
4775
- def test_filter_via_task_selector_custom_field_greater_than_or_equal_to_n_days_from_now_custom_field_not_found: () -> void
4776
-
4777
- def mock_filter_via_task_selector_modified_less_than_n_days_ago: () -> untyped
4778
-
4779
- def test_filter_via_task_selector_modified_less_than_n_days_ago: () -> void
4780
-
4781
- def test_estimate_exceeds_duration_true: () -> void
4782
-
4783
- def test_estimate_exceeds_duration_false_no_estimate_set: () -> void
4784
-
4785
- def test_estimate_exceeds_duration_true_only_due_set: () -> void
4786
-
4787
- def test_estimate_exceeds_duration_true_no_dates_set: () -> void
4788
-
4789
- def test_estimate_exceeds_duration_no_estimate_field: () -> void
4790
-
4791
- def test_filter_via_task_selector_modified_less_than_n_days_ago_nil: () -> void
4792
-
4793
- def test_filter_via_task_selector_modified_less_than_n_days_ago_field_not_supported: () -> void
4794
-
4795
- def test_filter_via_task_selector_modified_less_than_n_days_ago_compound_field_not_supported: () -> void
4796
-
4797
- def mock_filter_via_task_selector_field_greater_than_or_equal_to_n_days_from_today_due_on: () -> void
4798
-
4799
- def test_filter_via_task_selector_field_greater_than_or_equal_to_n_days_from_today_due_on: () -> void
4800
-
4801
- def mock_filter_via_task_selector_field_greater_than_or_equal_to_n_days_from_today_due_at: () -> void
4802
-
4803
- def test_filter_via_task_selector_field_greater_than_or_equal_to_n_days_from_today_due_at: () -> void
4804
-
4805
- def mock_filter_via_task_selector_field_greater_than_or_equal_to_n_days_from_today_due_nil: () -> void
4806
-
4807
- def test_filter_via_task_selector_field_greater_than_or_equal_to_n_days_from_today_due_nil: () -> void
4808
-
4809
- def test_filter_via_task_selector_custom_field_equal_to_date: () -> void
4810
-
4811
- def test_filter_via_task_selector_custom_field_not_equal_to_date: () -> void
4812
-
4813
- def test_filter_via_task_selector_last_story_created_less_than_n_days_ago_no_stories: () -> void
4814
-
4815
- def mock_filter_via_task_selector_last_story_created_less_than_n_days_ago_ancient: () -> void
4816
-
4817
- def test_filter_via_task_selector_last_story_created_less_than_n_days_ago_ancient: () -> void
4818
-
4819
- def mock_filter_via_task_selector_last_story_created_less_than_n_days_ago_recent: () -> void
4820
-
4821
- def test_filter_via_task_selector_last_story_created_less_than_n_days_ago_recent: () -> void
4822
-
4823
- def test_filter_via_task_selector_in_project_named_false: () -> untyped
4824
-
4825
- def test_filter_via_task_selector_in_project_named_true: () -> untyped
4826
-
4827
- def test_filter_via_task_selector_in_section_named_false: () -> untyped
4828
-
4829
- def test_filter_via_task_selector_in_section_named_true: () -> untyped
4830
-
4831
- def test_dependent_on_previous_section_last_milestone: () -> untyped
4832
-
4833
- def test_in_portfolio_named_true: () -> untyped
4834
-
4835
- def test_in_portfolio_named_false: () -> untyped
4836
-
4837
- def test_custom_field_gid_value_contains_any_gid_false_multi_enum: () -> void
4838
-
4839
- def test_last_task_milestone_does_not_depend_on_this_task: () -> void
4840
-
4841
- def test_in_a_real_project_true: () -> void
4842
-
4843
- def test_in_a_real_project_false_only_my_tasks: () -> void
4844
-
4845
- def test_section_name_starts_with_true: () -> void
4846
-
4847
- def test_section_name_starts_with_false: () -> void
4848
-
4849
- def test_in_section_named_true: () -> void
4850
-
4851
- def test_in_section_named_false: () -> void
4852
-
4853
- def test_in_portfolio_more_than_once_true: () -> void
4854
-
4855
- def test_no_milestone_depends_on_this_task_true: () -> void
4856
-
4857
- def respond_like_instance_of: () -> void
4858
-
4859
- def respond_like: () -> void
4860
-
4861
- def class_under_test: () -> singleton(Checkoff::TaskSelectors)
4862
- end
4863
-
4864
- # Test the Checkoff::ViewSubcommand class used in CLI processing
4865
- class TestViewSubcommand < ClassTest
4866
- extend Forwardable
4867
-
4868
- def task_name: () -> String
4869
-
4870
- def due_at_value: () -> String
4871
-
4872
- def expect_task_lookup: () -> void
4873
-
4874
- def stub_task_due_fields: () -> void
4875
-
4876
- def test_run_on_task: () -> void
4877
-
4878
- def test_run_on_task_not_found: () -> void
4879
-
4880
- def create_object: (?untyped clazz) -> Checkoff::ViewSubcommand
4881
-
4882
- def class_under_test: () -> singleton(Checkoff::ViewSubcommand)
4883
-
4884
- def respond_like_instance_of: () -> void
4885
-
4886
- def respond_like: () -> void
4887
- end
4888
-
4889
- class TestLogging < Minitest::Test
4890
- def test_logger_defaults_without_rails: () -> void
4891
-
4892
- def test_logger_uses_rails_logger_when_available: () -> void
4893
-
4894
- def test_logger_falls_back_when_rails_has_no_logger: () -> void
4895
-
4896
- def build_logger_owner: () -> void
4897
-
4898
- def with_removed_rails: () -> void
4899
-
4900
- def with_temporary_rails: (untyped rails_const) -> void
4901
- end
4902
-
4903
- class TestProjectSelectors < ClassTest
4904
- extend Forwardable
4905
-
4906
- def get_test_object: () -> Checkoff::ProjectSelectors
4907
-
4908
- def test_filter_via_custom_field_value_contain_any_value_false: () -> void
4909
-
4910
- def test_filter_via_custom_field_values_contain_any_value_true: () -> void
4911
-
4912
- def test_filter_via_custom_field_values_contain_any_value_true_single_in_multi_enum: () -> void
4913
-
4914
- def test_filter_via_custom_field_values_contain_any_value_true_multiple: () -> void
4915
-
4916
- def test_filter_via_custom_field_values_contain_any_value_false_nothing_set: () -> void
4917
-
4918
- def test_filter_via_custom_field_value_contains_any_value_no_custom_field_false: () -> void
4919
-
4920
- def test_filter_via_due_date_false: () -> void
4921
-
4922
- def test_filter_via_ready_false: () -> void
4923
-
4924
- def test_bogus_raises: () -> void
4925
-
4926
- def class_under_test: () -> singleton(Checkoff::ProjectSelectors)
4927
-
4928
- def respond_like_instance_of: () -> void
4929
-
4930
- def respond_like: () -> void
4931
- end
4932
-
4933
- class TestSectionSelectors < ClassTest
4934
- extend Forwardable
4935
-
4936
- def get_test_object: () -> Checkoff::SectionSelectors
4937
-
4938
- def test_filter_via_ends_with_milestone_empty: () -> void
4939
-
4940
- def expect_client_tasks_pulled: () -> void
4941
-
4942
- def expect_section_gid_pulled: () -> void
4943
-
4944
- def mock_filter_via_ends_with_milestone_true: () -> void
4945
-
4946
- def test_filter_via_ends_with_milestone_true: () -> void
4947
-
4948
- def test_bogus_raises: () -> void
4949
-
4950
- def test_filter_via_has_tasks_false: () -> void
4951
-
4952
- def class_under_test: () -> singleton(Checkoff::SectionSelectors)
4953
- end
4954
-
4955
- class TestTaskHashes < ClassTest
4956
- MEMBER_OF_SECTION_A_IN_PROJECT_1: untyped
4957
- TASK_A_RAW_HASH: untyped
4958
- TASK_A_HASH: untyped
4959
- TASK_B_RAW_HASH: untyped
4960
- TASK_B_HASH: untyped
4961
-
4962
- def test_task_a_to_h: () -> void
4963
-
4964
- def test_task_b_to_h: () -> void
4965
-
4966
- def class_under_test: () -> void
4967
- end
4968
-
4969
- class TestTaskTiming < ClassTest
4970
- def test_date_or_time_field_by_name_raises_if_unknown_field: () -> void
4971
-
4972
- def class_under_test: () -> void
4973
-
4974
- def respond_like_instance_of: () -> void
4975
-
4976
- def respond_like: () -> void
4977
- end
4978
-
4979
- # Test the Checkoff::Internal::ConfigLoader class
4980
- class TestConfigLoader < Minitest::Test
4981
- def mock_yaml_loaded: () -> void
4982
-
4983
- def test_requests_from_env_variable_neither_populated: () -> void
4984
-
4985
- def test_requests_from_env_variable_if_yaml_not_populated: () -> void
4986
-
4987
- def test_defers_to_yaml: () -> void
4988
- end
4989
-
4990
- class TestProjectHashes < ClassTest
4991
- PROJECT_A_RAW_HASH: untyped
4992
- PROJECT_A_HASH: untyped
4993
- PROJECT_B_RAW_HASH: untyped
4994
- PROJECT_B_HASH: untyped
4995
-
4996
- def test_project_a_to_h: () -> void
4997
-
4998
- def test_project_b_to_h: () -> void
4999
-
5000
- def test_project_b_to_h_named: () -> void
5001
-
5002
- def class_under_test: () -> void
5003
- end
5004
-
5005
- class TestProjectTiming < ClassTest
5006
- extend Forwardable
5007
-
5008
- def test_date_or_time_field_by_name_due: () -> void
5009
-
5010
- def test_date_or_time_field_by_name_due_nil: () -> void
5011
-
5012
- def test_date_or_time_field_by_name_start: () -> untyped
5013
-
5014
- def test_date_or_time_field_by_name_start_nil: () -> void
5015
-
5016
- def test_date_or_time_field_by_name_ready: () -> void
5017
-
5018
- def test_date_or_time_field_by_name_custom_field: () -> void
5019
-
5020
- def test_date_or_time_field_by_name_custom_field_nil: () -> void
5021
-
5022
- def test_date_or_time_field_by_name_raises_if_unknown_field: () -> void
5023
-
5024
- def test_date_or_time_field_by_name_raises_if_unknown_array_field: () -> void
5025
-
5026
- def class_under_test: () -> void
5027
-
5028
- def respond_like_instance_of: () -> void
5029
-
5030
- def respond_like: () -> void
5031
- end
5032
-
5033
- # rubocop:disable Metrics/ClassLength
5034
- class TestSearchUrlParser < ClassTest
5035
- def get_test_object: () -> Checkoff::Internal::SearchUrl::Parser
5036
-
5037
- # Ruby 3.4+ Hash#inspect inserts spaces around =>; normalize for assertions.
5038
- #
5039
- # _@param_ `message`
5040
- def normalize_error_message: (String message) -> String
5041
-
5042
- def test_convert_params_1: () -> void
5043
-
5044
- def test_convert_params_2: () -> void
5045
-
5046
- def test_convert_params_3: () -> void
5047
-
5048
- def test_convert_params_4: () -> void
5049
-
5050
- def test_convert_params_5: () -> void
5051
-
5052
- def test_convert_params_6: () -> void
5053
-
5054
- def test_convert_params_7: () -> void
5055
-
5056
- def test_convert_params_8: () -> void
5057
-
5058
- def test_convert_params_9: () -> void
5059
-
5060
- def test_convert_params_10: () -> void
5061
-
5062
- def test_convert_params_11: () -> void
5063
-
5064
- def test_convert_params_12: () -> void
5065
-
5066
- def test_convert_params_13: () -> void
5067
-
5068
- def test_convert_params_14: () -> void
5069
-
5070
- def test_convert_params_15: () -> void
5071
-
5072
- def test_convert_params_16: () -> void
5073
-
5074
- def test_convert_params_17: () -> void
5075
-
5076
- def test_convert_params_18: () -> void
5077
-
5078
- def test_convert_params_19: () -> void
5079
-
5080
- def test_convert_params_20: () -> void
5081
-
5082
- def test_convert_params_21: () -> void
5083
-
5084
- def test_convert_params_22: () -> void
5085
-
5086
- def test_convert_params_23: () -> void
5087
-
5088
- def test_convert_params_24: () -> void
5089
-
5090
- def test_convert_params_25: () -> void
5091
-
5092
- def test_convert_params_26: () -> void
5093
-
5094
- def test_convert_params_27: () -> void
5095
-
5096
- def test_convert_params_28: () -> void
5097
-
5098
- def test_convert_params_29: () -> void
5099
-
5100
- def test_convert_params_30: () -> void
5101
-
5102
- def test_convert_params_31: () -> void
5103
-
5104
- def test_convert_params_32: () -> void
5105
-
5106
- def test_convert_params_33: () -> void
5107
-
5108
- def test_convert_params_34: () -> void
5109
-
5110
- def test_convert_params_35: () -> void
5111
-
5112
- def test_convert_params_36: () -> void
5113
-
5114
- def test_convert_params_37: () -> void
5115
-
5116
- def test_convert_params_38: () -> void
5117
-
5118
- def test_convert_params_39: () -> void
5119
-
5120
- def test_convert_params_40: () -> void
5121
-
5122
- def test_convert_params_41: () -> void
5123
-
5124
- def test_convert_params_42: () -> void
5125
-
5126
- def test_convert_params_43: () -> void
5127
-
5128
- def test_convert_params_44: () -> void
5129
-
5130
- def test_convert_params_45: () -> void
5131
-
5132
- def test_convert_params_46: () -> void
5133
-
5134
- def test_convert_params_47: () -> void
5135
-
5136
- def test_convert_params_48: () -> void
5137
-
5138
- def class_under_test: () -> singleton(Checkoff::Internal::SearchUrl::Parser)
5139
- end
5140
-
5141
- class TestAsanaEventFilter < ClassTest
5142
- extend Forwardable
5143
- TASK_NAME_CHANGED_EVENT: untyped
5144
- CUSTOM_FIELD_CHANGED_EVENT: untyped
5145
- TASK_REMOVED_FROM_SECTION_EVENT: untyped
5146
- TASK_COMPLETED_EVENT: untyped
5147
- TASK_COMPLETED_EVENT_2: untyped
5148
-
5149
- def test_matches_nil_filters_true: () -> void
5150
-
5151
- def test_matches_zero_filters_false: () -> void
5152
-
5153
- def test_matches_on_resource_type_true: () -> void
5154
-
5155
- def test_matches_on_resource_subtype_true: () -> void
5156
-
5157
- def test_matches_on_action_true: () -> void
5158
-
5159
- def test_matches_on_action_false: () -> untyped
5160
-
5161
- def test_fetched_section_gid: () -> void
5162
-
5163
- def test_matches_on_fields_true: () -> void
5164
-
5165
- def expect_task_fetched: (untyped gid, untyped fields, untyped task_obj) -> void
5166
-
5167
- def test_task_completed_event_true: () -> void
5168
-
5169
- def test_matches_on_parent_gid_true: () -> void
5170
-
5171
- def test_matches_on_bad_key_raises: () -> void
5172
-
5173
- def class_under_test: () -> void
5174
-
5175
- def respond_like_instance_of: () -> void
5176
-
5177
- def respond_like: () -> void
5178
- end
5179
-
5180
- class TestPruneCheckoffRbiTestConstants < Minitest::Test
5181
- SAMPLE: untyped
5182
-
5183
- def test_prunes_subclass_constant: () -> untyped
5184
-
5185
- def test_noop_when_nothing_to_prune: () -> untyped
5186
3648
  end