LCOV - code coverage report
Current view: top level - pencil/include/filter - pencil_rules.inl (source / functions) Hit Total Coverage
Test: crystal-facet-uml_v1.57.0_covts Lines: 0 15 0.0 %
Date: 2024-04-07 11:14:42 Functions: 0 3 0.0 %

          Line data    Source code
       1             : /* File: pencil_rules.inl; Copyright and License: see below */
       2             : 
       3           0 : static inline void pencil_rules_init ( pencil_rules_t *this_ )
       4             : {
       5           0 :     (*this_).dummy = 0;  /* prevent warnings on uninitialized usage */
       6           0 : }
       7             : 
       8           0 : static inline void pencil_rules_destroy ( pencil_rules_t *this_ )
       9             : {
      10           0 : }
      11             : 
      12           0 : static inline bool pencil_rules_feature_is_implicit_proxy ( const pencil_rules_t *this_,
      13             :                                                             data_feature_type_t feature_type,
      14             :                                                             data_classifier_type_t classifier_type,
      15             :                                                             data_diagram_type_t diagram_type )
      16             : {
      17           0 :     const bool classifier_can_have_lifeline
      18           0 :         = ! (( classifier_type == DATA_CLASSIFIER_TYPE_DEPRECATED_FEATURE )
      19           0 :         || ( classifier_type == DATA_CLASSIFIER_TYPE_REQUIREMENT )
      20           0 :         || ( classifier_type == DATA_CLASSIFIER_TYPE_COMMENT )
      21           0 :         || ( classifier_type == DATA_CLASSIFIER_TYPE_INTERACTION )
      22             :         || ( classifier_type == DATA_CLASSIFIER_TYPE_DIAGRAM_REFERENCE ));
      23           0 :     const bool diagram_can_show_lifeline
      24             :         = ( diagram_type == DATA_DIAGRAM_TYPE_UML_SEQUENCE_DIAGRAM )
      25           0 :         || ( diagram_type == DATA_DIAGRAM_TYPE_UML_TIMING_DIAGRAM );
      26           0 :     const bool feature_is_lifeline = ( feature_type == DATA_FEATURE_TYPE_LIFELINE );
      27           0 :     return feature_is_lifeline && (( ! diagram_can_show_lifeline )||( ! classifier_can_have_lifeline ));
      28             : }
      29             : 
      30             : 
      31             : /*
      32             : Copyright 2023-2024 Andreas Warnke
      33             : 
      34             : Licensed under the Apache License, Version 2.0 (the "License");
      35             : you may not use this file except in compliance with the License.
      36             : You may obtain a copy of the License at
      37             : 
      38             :     http://www.apache.org/licenses/LICENSE-2.0
      39             : 
      40             : Unless required by applicable law or agreed to in writing, software
      41             : distributed under the License is distributed on an "AS IS" BASIS,
      42             : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      43             : See the License for the specific language governing permissions and
      44             : limitations under the License.
      45             : */

Generated by: LCOV version 1.16