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