LCOV - code coverage report
Current view: top level - data/include - data_guidelines.inl (source / functions) Coverage Total Hit
Test: crystal-facet-uml_v1.71.2_covts Lines: 100.0 % 19 19
Test Date: 2026-08-22 19:47:36 Functions: 100.0 % 4 4

            Line data    Source code
       1              : /* File: data_guidelines.inl; Copyright and License: see below */
       2              : 
       3              : #include "u8/u8_trace.h"
       4              : #include "u8/u8_log.h"
       5              : #include <assert.h>
       6              : 
       7            2 : static inline void data_guidelines_init ( data_guidelines_t *this_ )
       8              : {
       9            2 :     (*this_).dummy = 0;  /* prevent warnings on uninitialized usage */
      10            2 : }
      11              : 
      12            2 : static inline void data_guidelines_destroy ( data_guidelines_t *this_ )
      13              : {
      14            2 : }
      15              : 
      16              : /* ================================ DIAGRAM ================================ */
      17              : 
      18              : /* ================================ CLASSIFIER ================================ */
      19              : 
      20            2 : static inline bool data_guidelines_classifier_has_scenario_semantics ( const data_guidelines_t *this_,
      21              :                                                                        data_diagram_type_t diagram_type,
      22              :                                                                        data_classifier_type_t classifier_type )
      23              : {
      24            2 :     const bool lifeline_has_no_semantics
      25              :         = ( classifier_type == DATA_CLASSIFIER_TYPE_REQUIREMENT )
      26            2 :           || ( classifier_type == DATA_CLASSIFIER_TYPE_COMMENT )
      27            2 :           || ( classifier_type == DATA_CLASSIFIER_TYPE_IMAGE )
      28            2 :           || ( classifier_type == DATA_CLASSIFIER_TYPE_STEREOTYPE )
      29            5 :           || (( diagram_type == DATA_DIAGRAM_TYPE_UML_SEQUENCE_DIAGRAM )
      30            1 :           && (( classifier_type == DATA_CLASSIFIER_TYPE_INTERACTION )
      31            1 :           || ( classifier_type == DATA_CLASSIFIER_TYPE_INTERACTION_USE )));
      32            2 :     return ( ! lifeline_has_no_semantics);
      33              : }
      34              : 
      35              : /* ================================ FEATURE ================================ */
      36              : 
      37            2 : static inline bool data_guidelines_feature_value_is_stereotype ( const data_guidelines_t *this_, data_feature_type_t feature_type )
      38              : {
      39            2 :     const bool has_value
      40              :         = (( feature_type == DATA_FEATURE_TYPE_PROPERTY )
      41            2 :           || ( feature_type == DATA_FEATURE_TYPE_OPERATION )
      42            4 :           || ( feature_type == DATA_FEATURE_TYPE_TAGGED_VALUE ));
      43            2 :     return ( ! has_value );
      44              : }
      45              : 
      46              : /* ================================ RELATIONSHIP ================================ */
      47              : 
      48              : /*
      49              : Copyright 2017-2026 Andreas Warnke
      50              : 
      51              : Licensed under the Apache License, Version 2.0 (the "License");
      52              : you may not use this file except in compliance with the License.
      53              : You may obtain a copy of the License at
      54              : 
      55              :     http://www.apache.org/licenses/LICENSE-2.0
      56              : 
      57              : Unless required by applicable law or agreed to in writing, software
      58              : distributed under the License is distributed on an "AS IS" BASIS,
      59              : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      60              : See the License for the specific language governing permissions and
      61              : limitations under the License.
      62              : */
        

Generated by: LCOV version 2.0-1