LCOV - code coverage report
Current view: top level - ctrl/include - ctrl_classifier_trigger.inl (source / functions) Hit Total Coverage
Test: crystal-facet-uml_v1.61.0_covts Lines: 14 14 100.0 %
Date: 2024-10-26 21:44:38 Functions: 3 3 100.0 %

          Line data    Source code
       1             : /* File: ctrl_classifier_trigger.inl; Copyright and License: see below */
       2             : 
       3             : #include <assert.h>
       4             : 
       5          42 : static inline void ctrl_classifier_trigger_init ( ctrl_classifier_trigger_t *this_,
       6             :                                                   consistency_drop_invisibles_t *drop_invisibles,
       7             :                                                   consistency_lifeline_t *lifeline )
       8             : {
       9          42 :     assert( drop_invisibles != NULL );
      10          42 :     assert( lifeline != NULL );
      11          42 :     (*this_).drop_invisibles = drop_invisibles;
      12          42 :     (*this_).lifeline = lifeline;
      13          42 : }
      14             : 
      15          42 : static inline void ctrl_classifier_trigger_destroy ( ctrl_classifier_trigger_t *this_ )
      16             : {
      17          42 :     (*this_).drop_invisibles = NULL;
      18          42 :     (*this_).lifeline = NULL;
      19          42 : }
      20             : 
      21           9 : static inline u8_error_t ctrl_classifier_trigger_post_delete_feature( ctrl_classifier_trigger_t *this_,
      22             :                                                                       const data_feature_t *deleted_feature )
      23             : {
      24           9 :     u8_error_t result_err = U8_ERROR_NONE;
      25             : 
      26           9 :     result_err |= consistency_lifeline_unlink_lifeline( (*this_).lifeline, deleted_feature );
      27             : 
      28           9 :     return result_err;
      29             : }
      30             : 
      31             : 
      32             : /*
      33             : Copyright 2018-2024 Andreas Warnke
      34             : 
      35             : Licensed under the Apache License, Version 2.0 (the "License");
      36             : you may not use this file except in compliance with the License.
      37             : You may obtain a copy of the License at
      38             : 
      39             :     http://www.apache.org/licenses/LICENSE-2.0
      40             : 
      41             : Unless required by applicable law or agreed to in writing, software
      42             : distributed under the License is distributed on an "AS IS" BASIS,
      43             : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      44             : See the License for the specific language governing permissions and
      45             : limitations under the License.
      46             : */

Generated by: LCOV version 1.16