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