Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify code #403

Merged
merged 1 commit into from
Sep 4, 2023
Merged

simplify code #403

merged 1 commit into from
Sep 4, 2023

Conversation

qicosmos
Copy link
Owner

@qicosmos qicosmos commented Sep 4, 2023

simplify code, also support c++11.

@github-actions
Copy link

github-actions bot commented Sep 4, 2023

Code Coverage Report
for detail, goto summary download Artifacts

Filename                                            Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
asio/any_io_executor.hpp                                    2                 0   100.00%           4                 0   100.00%           0                 0         -
asio/associated_allocator.hpp                               3                 0   100.00%           9                 0   100.00%           0                 0         -
asio/associated_cancellation_slot.hpp                       2                 0   100.00%           6                 0   100.00%           0                 0         -
asio/async_result.hpp                                       2                 0   100.00%          11                 0   100.00%           0                 0         -
asio/basic_socket.hpp                                      16                 1    93.75%          73                 9    87.67%           4                 2    50.00%
asio/basic_socket_acceptor.hpp                             17                 1    94.12%          72                 8    88.89%           0                 0         -
asio/basic_socket_streambuf.hpp                             2                 2     0.00%           4                 4     0.00%           0                 0         -
asio/basic_stream_socket.hpp                                9                 0   100.00%          44                 6    86.36%           0                 0         -
asio/basic_streambuf.hpp                                   19                 1    94.74%         119                21    82.35%          24                 9    62.50%
asio/basic_waitable_timer.hpp                              14                 2    85.71%          65                13    80.00%           0                 0         -
asio/buffer.hpp                                            54                13    75.93%         212                50    76.42%          22                 7    68.18%
asio/buffer_registration.hpp                                1                 1     0.00%           3                 3     0.00%           0                 0         -
asio/buffers_iterator.hpp                                  14                 0   100.00%         140                53    62.14%          28                15    46.43%
asio/cancellation_signal.hpp                               15                13    13.33%          52                47     9.62%           0                 0         -
asio/cancellation_state.hpp                                 5                 5     0.00%          14                14     0.00%           0                 0         -
asio/cancellation_type.hpp                                  8                 8     0.00%          30                30     0.00%           0                 0         -
asio/completion_condition.hpp                               9                 3    66.67%          27                 8    70.37%           8                 1    87.50%
asio/compose.hpp                                            7                 7     0.00%          17                17     0.00%           0                 0         -
asio/coroutine.hpp                                          9                 9     0.00%           9                 9     0.00%           0                 0         -
asio/deferred.hpp                                           2                 2     0.00%           5                 5     0.00%           0                 0         -
asio/detached.hpp                                           1                 1     0.00%           2                 2     0.00%           0                 0         -
asio/detail/atomic_count.hpp                                4                 4     0.00%          13                13     0.00%           0                 0         -
asio/detail/base_from_cancellation_state.hpp                3                 0   100.00%           7                 0   100.00%           0                 0         -
asio/detail/base_from_completion_cond.hpp                   4                 0   100.00%          11                 0   100.00%           0                 0         -
asio/detail/bind_handler.hpp                               16                 7    56.25%          55                27    50.91%           0                 0         -
asio/detail/buffer_sequence_adapter.hpp                    24                 8    66.67%         117                38    67.52%          22                 8    63.64%
asio/detail/buffered_stream_storage.hpp                     9                 9     0.00%          41                41     0.00%           0                 0         -
asio/detail/call_stack.hpp                                  5                 1    80.00%          30                10    66.67%           6                 0   100.00%
asio/detail/chrono_time_traits.hpp                         10                 1    90.00%          91                44    51.65%          20                16    20.00%
asio/detail/conditionally_enabled_event.hpp                10                 3    70.00%          42                18    57.14%          10                 5    50.00%
asio/detail/conditionally_enabled_mutex.hpp                12                 1    91.67%          50                 5    90.00%          14                 5    64.29%
asio/detail/consuming_buffers.hpp                          22                 5    77.27%          85                10    88.24%          14                 1    92.86%
asio/detail/deadline_timer_service.hpp                     15                 4    73.33%         107                46    57.01%           6                 3    50.00%
asio/detail/descriptor_ops.hpp                              1                 1     0.00%          11                11     0.00%           0                 0         -
asio/detail/epoll_reactor.hpp                               2                 1    50.00%           2                 1    50.00%           0                 0         -
asio/detail/eventfd_select_interrupter.hpp                  1                 0   100.00%           3                 0   100.00%           0                 0         -
asio/detail/executor_function.hpp                           9                 3    66.67%          55                19    65.45%           6                 3    50.00%
asio/detail/executor_op.hpp                                 2                 0   100.00%          17                 0   100.00%           2                 0   100.00%
asio/detail/handler_alloc_helpers.hpp                      13                 0   100.00%         116                28    75.86%           8                 0   100.00%
asio/detail/handler_cont_helpers.hpp                        1                 0   100.00%           9                 3    66.67%           0                 0         -
asio/detail/handler_invoke_helpers.hpp                      1                 0   100.00%          14                 9    35.71%           0                 0         -
asio/detail/handler_work.hpp                                6                 1    83.33%          27                12    55.56%           2                 1    50.00%
asio/detail/impl/descriptor_ops.ipp                        19                19     0.00%         523               523     0.00%           0                 0         -
asio/detail/impl/epoll_reactor.hpp                          7                 2    71.43%          44                19    56.82%           4                 2    50.00%
asio/detail/impl/epoll_reactor.ipp                         30                 5    83.33%         529               206    61.06%         150                69    54.00%
asio/detail/impl/eventfd_select_interrupter.ipp             7                 2    71.43%          94                70    25.53%          16                11    31.25%
asio/detail/impl/null_event.ipp                             2                 2     0.00%          21                21     0.00%           0                 0         -
asio/detail/impl/posix_event.ipp                            1                 0   100.00%          15                 0   100.00%           4                 2    50.00%
asio/detail/impl/posix_mutex.ipp                            1                 0   100.00%           6                 0   100.00%           0                 0         -
asio/detail/impl/posix_serial_port_service.ipp              4                 4     0.00%         105               105     0.00%           0                 0         -
asio/detail/impl/posix_thread.ipp                           5                 1    80.00%          36                15    58.33%           6                 3    50.00%
asio/detail/impl/reactive_descriptor_service.ipp           10                10     0.00%         140               140     0.00%           0                 0         -
asio/detail/impl/reactive_socket_service_base.ipp          14                 2    85.71%         178                61    65.73%          48                20    58.33%
asio/detail/impl/resolver_service_base.ipp                 13                 4    69.23%          83                33    60.24%          14                 7    50.00%
asio/detail/impl/scheduler.ipp                             31                13    58.06%         478               292    38.91%          74                22    70.27%
asio/detail/impl/service_registry.hpp                       6                 0   100.00%          27                 0   100.00%           0                 0         -
asio/detail/impl/service_registry.ipp                      11                 3    72.73%         116                53    54.31%          30                12    60.00%
asio/detail/impl/signal_set_service.ipp                    20                20     0.00%         567               567     0.00%           0                 0         -
asio/detail/impl/socket_ops.ipp                            84                53    36.90%        1932              1614    16.46%         222               125    43.69%
asio/detail/impl/strand_executor_service.ipp                6                 6     0.00%          91                91     0.00%           0                 0         -
asio/detail/impl/strand_service.ipp                         8                 8     0.00%         130               130     0.00%           0                 0         -
asio/detail/impl/thread_context.ipp                         1                 0   100.00%           3                 0   100.00%           0                 0         -
asio/detail/impl/throw_error.ipp                            2                 1    50.00%           9                 4    55.56%           0                 0         -
asio/detail/impl/timer_queue_set.ipp                        8                 2    75.00%          52                22    57.69%          16                 8    50.00%
asio/detail/io_control.hpp                                  7                 7     0.00%          19                19     0.00%           0                 0         -
asio/detail/io_object_impl.hpp                             10                 0   100.00%          38                 0   100.00%           2                 1    50.00%
asio/detail/keyword_tss_ptr.hpp                             3                 0   100.00%           8                 0   100.00%           0                 0         -
asio/detail/memory.hpp                                      2                 0   100.00%          16                 4    75.00%           6                 2    66.67%
asio/detail/non_const_lvalue.hpp                            1                 0   100.00%           2                 0   100.00%           0                 0         -
asio/detail/noncopyable.hpp                                 2                 0   100.00%           2                 0   100.00%           0                 0         -
asio/detail/null_event.hpp                                  4                 4     0.00%          11                11     0.00%           0                 0         -
asio/detail/object_pool.hpp                                10                 0   100.00%          59                 0   100.00%          12                 0   100.00%
asio/detail/op_queue.hpp                                   13                 1    92.31%          67                 7    89.55%          16                 3    81.25%
asio/detail/posix_event.hpp                                 8                 2    75.00%          77                36    53.25%           6                 1    83.33%
asio/detail/posix_mutex.hpp                                 3                 0   100.00%           9                 0   100.00%           0                 0         -
asio/detail/posix_serial_port_service.hpp                  10                10     0.00%          34                34     0.00%           0                 0         -
asio/detail/posix_signal_blocker.hpp                        4                 4     0.00%          21                21     0.00%           2                 2     0.00%
asio/detail/posix_static_mutex.hpp                          3                 3     0.00%           9                 9     0.00%           0                 0         -
asio/detail/posix_thread.hpp                                5                 0   100.00%          10                 0   100.00%           0                 0         -
asio/detail/reactive_descriptor_service.hpp                13                13     0.00%          73                73     0.00%           0                 0         -
asio/detail/reactive_socket_accept_op.hpp                   5                 0   100.00%          64                17    73.44%          16                 6    62.50%
asio/detail/reactive_socket_connect_op.hpp                  4                 0   100.00%          33                 0   100.00%           4                 2    50.00%
asio/detail/reactive_socket_recv_op.hpp                     4                 0   100.00%          68                22    67.65%          12                 4    66.67%
asio/detail/reactive_socket_send_op.hpp                     4                 0   100.00%          70                24    65.71%          18                12    33.33%
asio/detail/reactive_socket_service.hpp                    12                 1    91.67%         118                44    62.71%          10                 6    40.00%
asio/detail/reactive_socket_service_base.hpp               17                13    23.53%         151               100    33.77%          16                 7    56.25%
asio/detail/reactor_op.hpp                                  2                 0   100.00%           5                 0   100.00%           0                 0         -
asio/detail/recycling_allocator.hpp                         5                 0   100.00%          15                 0   100.00%           0                 0         -
asio/detail/resolve_op.hpp                                  1                 0   100.00%           2                 0   100.00%           0                 0         -
asio/detail/resolve_query_op.hpp                            3                 0   100.00%          41                 0   100.00%          10                 2    80.00%
asio/detail/resolver_service.hpp                            5                 1    80.00%          27                 3    88.89%           2                 1    50.00%
asio/detail/resolver_service_base.hpp                       5                 3    40.00%          15                 9    40.00%           2                 1    50.00%
asio/detail/scheduler.hpp                                   4                 0   100.00%          11                 0   100.00%           2                 0   100.00%
asio/detail/scheduler_operation.hpp                         4                 0   100.00%          10                 0   100.00%           0                 0         -
asio/detail/scheduler_task.hpp                              1                 0   100.00%           2                 0   100.00%           0                 0         -
asio/detail/scoped_lock.hpp                                 4                 0   100.00%          22                 0   100.00%           6                 3    50.00%
asio/detail/scoped_ptr.hpp                                  7                 0   100.00%          23                 0   100.00%           0                 0         -
asio/detail/service_registry.hpp                            1                 0   100.00%           1                 0   100.00%           0                 0         -
asio/detail/signal_op.hpp                                   1                 1     0.00%           2                 2     0.00%           0                 0         -
asio/detail/signal_set_service.hpp                          4                 4     0.00%          15                15     0.00%           0                 0         -
asio/detail/socket_holder.hpp                               7                 0   100.00%          33                11    66.67%           4                 2    50.00%
asio/detail/socket_ops.hpp                                  1                 0   100.00%           1                 0   100.00%           0                 0         -
asio/detail/socket_option.hpp                               5                 0   100.00%          14                 0   100.00%           0                 0         -
asio/detail/std_fenced_block.hpp                            3                 0   100.00%           8                 0   100.00%           0                 0         -
asio/detail/thread_group.hpp                                6                 6     0.00%          24                24     0.00%           0                 0         -
asio/detail/thread_info_base.hpp                            8                 1    87.50%         107                27    74.77%          38                 9    76.32%
asio/detail/throw_error.hpp                                 2                 0   100.00%           8                 1    87.50%           4                 1    75.00%
asio/detail/throw_exception.hpp                             1                 0   100.00%           3                 0   100.00%           0                 0         -
asio/detail/timer_queue.hpp                                18                 7    61.11%         216               117    45.83%          84                52    38.10%
asio/detail/timer_queue_base.hpp                            2                 1    50.00%           2                 1    50.00%           0                 0         -
asio/detail/tss_ptr.hpp                                     1                 0   100.00%          11                 8    27.27%           0                 0         -
asio/detail/type_traits.hpp                                 1                 1     0.00%           1                 1     0.00%           0                 0         -
asio/detail/wait_handler.hpp                                2                 0   100.00%          34                13    61.76%           2                 1    50.00%
asio/detail/wait_op.hpp                                     1                 0   100.00%           2                 0   100.00%           0                 0         -
asio/error.hpp                                              6                 1    83.33%          22                 4    81.82%           0                 0         -
asio/execution/allocator.hpp                                4                 1    75.00%          10                 2    80.00%           0                 0         -
asio/execution/any_executor.hpp                            80                43    46.25%         396               216    45.45%           4                 2    50.00%
asio/execution/blocking.hpp                                 6                 3    50.00%          15                 8    46.67%           0                 0         -
asio/execution/context_as.hpp                               2                 0   100.00%           5                 0   100.00%           0                 0         -
asio/execution/detail/void_receiver.hpp                     2                 2     0.00%           4                 4     0.00%           0                 0         -
asio/execution/execute.hpp                                  1                 0   100.00%           3                 0   100.00%           0                 0         -
asio/execution/impl/bad_executor.ipp                        2                 2     0.00%           5                 5     0.00%           0                 0         -
asio/execution/outstanding_work.hpp                         6                 6     0.00%          18                18     0.00%           0                 0         -
asio/execution/prefer_only.hpp                              5                 2    60.00%          13                 6    53.85%           0                 0         -
asio/execution/relationship.hpp                             4                 4     0.00%          10                10     0.00%           0                 0         -
asio/execution_context.hpp                                  3                 0   100.00%           4                 0   100.00%           0                 0         -
asio/executor.hpp                                          21                21     0.00%          71                71     0.00%           0                 0         -
asio/generic/datagram_protocol.hpp                          6                 6     0.00%          17                17     0.00%           0                 0         -
asio/generic/detail/endpoint.hpp                            8                 8     0.00%          26                26     0.00%           0                 0         -
asio/generic/detail/impl/endpoint.ipp                       4                 4     0.00%          50                50     0.00%           0                 0         -
asio/generic/raw_protocol.hpp                               6                 6     0.00%          17                17     0.00%           0                 0         -
asio/generic/seq_packet_protocol.hpp                        6                 6     0.00%          17                17     0.00%           0                 0         -
asio/generic/stream_protocol.hpp                            6                 6     0.00%          17                17     0.00%           0                 0         -
asio/handler_continuation_hook.hpp                          1                 0   100.00%           3                 0   100.00%           0                 0         -
asio/handler_invoke_hook.hpp                                1                 0   100.00%           6                 3    50.00%           0                 0         -
asio/impl/any_io_executor.ipp                              13                 9    30.77%          39                30    23.08%           0                 0         -
asio/impl/cancellation_signal.ipp                           3                 3     0.00%          46                46     0.00%          10                10     0.00%
asio/impl/connect.hpp                                      13                 0   100.00%          92                18    80.43%          16                 6    62.50%
asio/impl/connect_pipe.ipp                                  2                 2     0.00%          93                93     0.00%           0                 0         -
asio/impl/detached.hpp                                      1                 1     0.00%           2                 2     0.00%           0                 0         -
asio/impl/dispatch.hpp                                      3                 0   100.00%          17                 0   100.00%           0                 0         -
asio/impl/error.ipp                                         9                 6    33.33%          50                38    24.00%          20                20     0.00%
asio/impl/error_code.ipp                                    5                 4    20.00%          20                16    20.00%           2                 2     0.00%
asio/impl/execution_context.hpp                             3                 0   100.00%          11                 0   100.00%           0                 0         -
asio/impl/execution_context.ipp                             9                 4    55.56%          24                 9    62.50%           0                 0         -
asio/impl/executor.ipp                                      1                 1     0.00%           3                 3     0.00%           0                 0         -
asio/impl/handler_alloc_hook.ipp                            2                 0   100.00%           8                 0   100.00%           0                 0         -
asio/impl/io_context.hpp                                   12                 6    50.00%          72                23    68.06%           4                 1    75.00%
asio/impl/io_context.ipp                                   17                14    17.65%          68                55    19.12%           0                 0         -
asio/impl/multiple_exceptions.ipp                           3                 3     0.00%           8                 8     0.00%           0                 0         -
asio/impl/post.hpp                                          4                 1    75.00%          24                 6    75.00%           0                 0         -
asio/impl/read.hpp                                         25                 0   100.00%         174                 8    95.40%          30                 4    86.67%
asio/impl/read_until.hpp                                   13                 0   100.00%         141                17    87.94%          40                 9    77.50%
asio/impl/serial_port_base.hpp                              5                 5     0.00%          15                15     0.00%           0                 0         -
asio/impl/serial_port_base.ipp                             10                10     0.00%         434               434     0.00%           0                 0         -
asio/impl/system_context.hpp                                1                 1     0.00%           3                 3     0.00%           0                 0         -
asio/impl/system_context.ipp                                5                 5     0.00%          30                30     0.00%           0                 0         -
asio/impl/thread_pool.hpp                                   3                 3     0.00%           9                 9     0.00%           0                 0         -
asio/impl/thread_pool.ipp                                   8                 8     0.00%          52                52     0.00%           0                 0         -
asio/impl/use_future.hpp                                    3                 3     0.00%          25                25     0.00%           0                 0         -
asio/impl/write.hpp                                        12                 0   100.00%          92                18    80.43%          16                 2    87.50%
asio/io_context.hpp                                        19                 6    68.42%          79                34    56.96%          14                13     7.14%
asio/io_context_strand.hpp                                  8                 8     0.00%          23                23     0.00%           0                 0         -
asio/ip/address.hpp                                         7                 7     0.00%          23                23     0.00%           0                 0         -
asio/ip/address_v4.hpp                                     17                16     5.88%          51                48     5.88%           0                 0         -
asio/ip/address_v4_iterator.hpp                            13                13     0.00%          44                44     0.00%           0                 0         -
asio/ip/address_v4_range.hpp                               11                11     0.00%          33                33     0.00%           0                 0         -
asio/ip/address_v6.hpp                                     10                10     0.00%          41                41     0.00%           0                 0         -
asio/ip/address_v6_iterator.hpp                            13                13     0.00%          64                64     0.00%           0                 0         -
asio/ip/address_v6_range.hpp                               10                10     0.00%          30                30     0.00%           0                 0         -
asio/ip/bad_address_cast.hpp                                3                 3     0.00%           5                 5     0.00%           0                 0         -
asio/ip/basic_endpoint.hpp                                 10                 1    90.00%          28                 3    89.29%           2                 0   100.00%
asio/ip/basic_resolver.hpp                                  8                 0   100.00%          34                 0   100.00%           0                 0         -
asio/ip/basic_resolver_entry.hpp                            2                 0   100.00%           5                 0   100.00%           0                 0         -
asio/ip/basic_resolver_iterator.hpp                        12                 0   100.00%          51                 1    98.04%          10                 3    70.00%
asio/ip/basic_resolver_query.hpp                            4                 0   100.00%          20                 0   100.00%           0                 0         -
asio/ip/basic_resolver_results.hpp                          5                 1    80.00%          37                 4    89.19%          10                 3    70.00%
asio/ip/detail/endpoint.hpp                                 7                 2    71.43%          24                 7    70.83%           2                 0   100.00%
asio/ip/detail/impl/endpoint.ipp                           10                 7    30.00%         106                88    16.98%           4                 2    50.00%
asio/ip/icmp.hpp                                            8                 8     0.00%          25                25     0.00%           0                 0         -
asio/ip/impl/address.hpp                                    5                 5     0.00%          15                15     0.00%           0                 0         -
asio/ip/impl/address.ipp                                   22                19    13.64%         116               102    12.07%           4                 2    50.00%
asio/ip/impl/address_v4.hpp                                 4                 4     0.00%          12                12     0.00%           0                 0         -
asio/ip/impl/address_v4.ipp                                20                19     5.00%          96                90     6.25%           2                 1    50.00%
asio/ip/impl/address_v6.hpp                                 4                 4     0.00%          12                12     0.00%           0                 0         -
asio/ip/impl/address_v6.ipp                                34                32     5.88%         201               192     4.48%           2                 1    50.00%
asio/ip/impl/host_name.ipp                                  2                 2     0.00%          16                16     0.00%           0                 0         -
asio/ip/impl/network_v4.ipp                                11                11     0.00%          89                89     0.00%           0                 0         -
asio/ip/impl/network_v6.ipp                                11                11     0.00%         107               107     0.00%           0                 0         -
asio/ip/network_v4.hpp                                     15                15     0.00%          46                46     0.00%           0                 0         -
asio/ip/network_v6.hpp                                     12                12     0.00%          37                37     0.00%           0                 0         -
asio/ip/resolver_base.hpp                                   8                 7    12.50%          29                27     6.90%           0                 0         -
asio/ip/resolver_query_base.hpp                             1                 1     0.00%           2                 2     0.00%           0                 0         -
asio/ip/tcp.hpp                                             8                 2    75.00%          23                 6    73.91%           0                 0         -
asio/ip/udp.hpp                                             8                 8     0.00%          23                23     0.00%           0                 0         -
asio/local/datagram_protocol.hpp                            3                 3     0.00%           9                 9     0.00%           0                 0         -
asio/local/detail/endpoint.hpp                              6                 6     0.00%          20                20     0.00%           0                 0         -
asio/local/detail/impl/endpoint.ipp                         7                 7     0.00%          51                51     0.00%           0                 0         -
asio/local/stream_protocol.hpp                              3                 3     0.00%           9                 9     0.00%           0                 0         -
asio/posix/descriptor_base.hpp                              1                 1     0.00%           2                 2     0.00%           0                 0         -
asio/prefer.hpp                                             5                 0   100.00%          23                 0   100.00%           0                 0         -
asio/query.hpp                                              3                 1    66.67%          12                 6    50.00%           0                 0         -
asio/recycling_allocator.hpp                                3                 3     0.00%           8                 8     0.00%           0                 0         -
asio/registered_buffer.hpp                                 32                32     0.00%          95                95     0.00%           0                 0         -
asio/require.hpp                                            1                 0   100.00%           4                 0   100.00%           0                 0         -
asio/serial_port_base.hpp                                   1                 1     0.00%           2                 2     0.00%           0                 0         -
asio/socket_base.hpp                                        1                 0   100.00%           2                 0   100.00%           0                 0         -
asio/ssl/context_base.hpp                                   1                 0   100.00%           2                 0   100.00%           0                 0         -
asio/ssl/detail/handshake_op.hpp                            4                 1    75.00%          12                 3    75.00%           0                 0         -
asio/ssl/detail/impl/engine.ipp                            21                 8    61.90%         219               122    44.29%          52                21    59.62%
asio/ssl/detail/impl/openssl_init.ipp                       3                 1    66.67%           8                 2    75.00%           0                 0         -
asio/ssl/detail/io.hpp                                      9                 0   100.00%         213               117    45.07%          42                 8    80.95%
asio/ssl/detail/openssl_init.hpp                            2                 0   100.00%           7                 0   100.00%           0                 0         -
asio/ssl/detail/password_callback.hpp                       3                 0   100.00%           7                 0   100.00%           0                 0         -
asio/ssl/detail/read_op.hpp                                 3                 0   100.00%          11                 0   100.00%           0                 0         -
asio/ssl/detail/shutdown_op.hpp                             2                 2     0.00%           7                 7     0.00%           0                 0         -
asio/ssl/detail/stream_core.hpp                             7                 2    71.43%          54                39    27.78%           0                 0         -
asio/ssl/detail/verify_callback.hpp                         3                 0   100.00%           7                 0   100.00%           0                 0         -
asio/ssl/detail/write_op.hpp                                3                 0   100.00%          14                 0   100.00%           0                 0         -
asio/ssl/error.hpp                                          2                 2     0.00%           8                 8     0.00%           0                 0         -
asio/ssl/host_name_verification.hpp                         1                 0   100.00%           2                 0   100.00%           0                 0         -
asio/ssl/impl/context.hpp                                   4                 0   100.00%          20                 0   100.00%           0                 0         -
asio/ssl/impl/context.ipp                                  50                32    36.00%         928               755    18.64%         122                78    36.07%
asio/ssl/impl/error.ipp                                     6                 3    50.00%          46                18    60.87%          22                16    27.27%
asio/ssl/impl/host_name_verification.ipp                    1                 0   100.00%          25                 5    80.00%           6                 3    50.00%
asio/ssl/impl/rfc2818_verification.ipp                      2                 2     0.00%         118               118     0.00%           0                 0         -
asio/ssl/rfc2818_verification.hpp                           1                 1     0.00%           2                 2     0.00%           0                 0         -
asio/ssl/stream.hpp                                        12                 1    91.67%          49                 6    87.76%           0                 0         -
asio/ssl/stream_base.hpp                                    1                 0   100.00%           2                 0   100.00%           0                 0         -
asio/ssl/verify_context.hpp                                 2                 0   100.00%           5                 0   100.00%           0                 0         -
asio/this_coro.hpp                                          8                 8     0.00%          19                19     0.00%           0                 0         -
asio/thread.hpp                                             2                 2     0.00%           5                 5     0.00%           0                 0         -
asio/traits/query_static_constexpr_member.hpp               1                 1     0.00%           3                 3     0.00%           0                 0         -
asio/traits/static_query.hpp                                1                 1     0.00%           3                 3     0.00%           0                 0         -
asio/uses_executor.hpp                                      1                 1     0.00%           2                 2     0.00%           0                 0         -
asio/wait_traits.hpp                                        1                 0   100.00%           3                 0   100.00%           0                 0         -
async_simple/Common.h                                       1                 0   100.00%           5                 1    80.00%           2                 1    50.00%
async_simple/Executor.h                                    19                17    10.53%          40                38     5.00%           0                 0         -
async_simple/Future.h                                      11                 1    90.91%          48                 5    89.58%          22                10    54.55%
async_simple/FutureState.h                                 27                 7    74.07%         192                70    63.54%          46                24    47.83%
async_simple/LocalState.h                                   7                 2    71.43%          16                 5    68.75%           2                 1    50.00%
async_simple/MoveWrapper.h                                  5                 0   100.00%           5                 0   100.00%           0                 0         -
async_simple/Promise.h                                      7                 0   100.00%          27                 0   100.00%           2                 0   100.00%
async_simple/Try.h                                         21                 7    66.67%          57                23    59.65%          10                 7    30.00%
async_simple/Unit.h                                         2                 2     0.00%           2                 2     0.00%           0                 0         -
async_simple/coro/Collect.h                                10                 0   100.00%          72                 8    88.89%          12                 6    50.00%
async_simple/coro/CountEvent.h                              5                 2    60.00%          17                 5    70.59%           2                 0   100.00%
async_simple/coro/DetachedCoroutine.h                       5                 1    80.00%          15                 9    40.00%           0                 0         -
async_simple/coro/FutureAwaiter.h                           5                 0   100.00%          19                 0   100.00%           0                 0         -
async_simple/coro/Lazy.h                                   49                 9    81.63%         159                36    77.36%          12                 6    50.00%
async_simple/coro/SyncAwait.h                               2                 0   100.00%          20                 2    90.00%           2                 1    50.00%
async_simple/coro/Traits.h                                  1                 0   100.00%           8                 1    87.50%           0                 0         -
async_simple/coro/ViaCoroutine.h                           22                 5    77.27%          77                19    75.32%           6                 3    50.00%
async_simple/experimental/coroutine.h                      39                17    56.41%         107                39    63.55%           0                 0         -
async_simple/util/Condition.h                               1                 0   100.00%           1                 0   100.00%           0                 0         -
cinatra/cinatra_log_wrapper.hpp                             4                 1    75.00%           9                 1    88.89%           0                 0         -
cinatra/connection.hpp                                     94                28    70.21%        1371               620    54.78%         288               161    44.10%
cinatra/cookie.hpp                                         14                14     0.00%          74                74     0.00%          24                24     0.00%
cinatra/coro_http_client.hpp                               76                 1    98.68%        1084               114    89.48%         366                74    79.78%
cinatra/http_cache.hpp                                     13                 8    38.46%          53                40    24.53%           2                 1    50.00%
cinatra/http_parser.hpp                                    15                 3    80.00%          80                11    86.25%          22                 4    81.82%
cinatra/http_router.hpp                                    13                 4    69.23%         185                79    57.30%          46                28    39.13%
cinatra/http_server.hpp                                    29                 3    89.66%         502               120    76.10%          94                52    44.68%
cinatra/io_service_pool.hpp                                15                10    33.33%          64                27    57.81%          10                 1    90.00%
cinatra/itoa.hpp                                           14                 6    57.14%          65                27    58.46%          14                 8    42.86%
cinatra/mime_types.hpp                                      1                 0   100.00%           7                 1    85.71%           2                 1    50.00%
cinatra/multipart_parser.hpp                               19                 6    68.42%         317                88    72.24%         126                37    70.63%
cinatra/multipart_reader.hpp                               18                 4    77.78%          74                 4    94.59%           8                 4    50.00%
cinatra/picohttpparser.h                                   13                 5    61.54%         412               243    41.02%         198               103    47.98%
cinatra/request.hpp                                       104                39    62.50%         615               307    50.08%         160                72    55.00%
cinatra/response.hpp                                       35                21    40.00%         200               118    41.00%          44                25    43.18%
cinatra/response_cv.hpp                                     4                 2    50.00%         172               158     8.14%         122                78    36.07%
cinatra/session.hpp                                        10                10     0.00%          40                40     0.00%           0                 0         -
cinatra/session_manager.hpp                                 7                 7     0.00%          54                54     0.00%           0                 0         -
cinatra/sha1.hpp                                           12                 0   100.00%         183                 8    95.63%          12                 2    83.33%
cinatra/string_resize.hpp                                   2                 0   100.00%          10                 0   100.00%           0                 0         -
cinatra/time_util.hpp                                      22                14    36.36%         341               151    55.72%         184                68    63.04%
cinatra/upload_file.hpp                                    13                 6    53.85%          82                54    34.15%           6                 3    50.00%
cinatra/uri.hpp                                            17                 5    70.59%         200                59    70.50%         166                52    68.67%
cinatra/url_encode_decode.hpp                               6                 6     0.00%          53                53     0.00%           8                 8     0.00%
cinatra/utils.hpp                                          54                33    38.89%         561               390    30.48%         146                85    41.78%
cinatra/websocket.hpp                                      13                 3    76.92%         178                38    78.65%          80                37    53.75%
cinatra/ylt/coro_io/coro_file.hpp                          13                 3    76.92%          90                25    72.22%          16                 6    62.50%
cinatra/ylt/coro_io/coro_io.hpp                            35                 4    88.57%         177                22    87.57%           2                 0   100.00%
cinatra/ylt/coro_io/io_context_pool.hpp                    31                15    51.61%         179                82    54.19%          16                 8    50.00%
cmdline/cmdline.h                                          63                24    61.90%         363               186    48.76%         110                55    50.00%

Files which contain no functions:
asio/detail/assert.hpp                                      0                 0         -           0                 0         -           0                 0         -
asio/detail/concurrency_hint.hpp                            0                 0         -           0                 0         -           0                 0         -
asio/detail/config.hpp                                      0                 0         -           0                 0         -           0                 0         -
asio/detail/handler_tracking.hpp                            0                 0         -           0                 0         -           0                 0         -
asio/detail/handler_type_requirements.hpp                   0                 0         -           0                 0         -           0                 0         -
asio/detail/socket_types.hpp                                0                 0         -           0                 0         -           0                 0         -
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                    2868              1316    54.11%       23162             12844    44.55%        3880              1738    55.21%

@qicosmos qicosmos merged commit 5e2b585 into master Sep 4, 2023
22 checks passed
@qicosmos qicosmos deleted the simplify_string_thief branch September 4, 2023 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant