LCOV - code coverage report
Current view: top level - src/libvalent/messages - valent-message-attachment.h (source / functions) Coverage Total Hit
Test: Code Coverage Lines: 100.0 % 1 1
Test Date: 2024-12-21 23:29:11 Functions: 100.0 % 1 1
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 50.0 % 6 3

             Branch data     Line data    Source code
       1                 :             : // SPDX-License-Identifier: GPL-3.0-or-later
       2                 :             : // SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com>
       3                 :             : 
       4                 :             : #pragma once
       5                 :             : 
       6                 :             : #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION)
       7                 :             : # error "Only <valent.h> can be included directly."
       8                 :             : #endif
       9                 :             : 
      10                 :             : #include <gio/gio.h>
      11                 :             : 
      12                 :             : #include "../core/valent-resource.h"
      13                 :             : 
      14                 :             : G_BEGIN_DECLS
      15                 :             : 
      16                 :             : #define VALENT_TYPE_MESSAGE_ATTACHMENT (valent_message_attachment_get_type())
      17                 :             : 
      18                 :             : VALENT_AVAILABLE_IN_1_0
      19   [ +  -  +  -  :           9 : G_DECLARE_FINAL_TYPE (ValentMessageAttachment, valent_message_attachment, VALENT, MESSAGE_ATTACHMENT, ValentResource)
                   -  + ]
      20                 :             : 
      21                 :             : VALENT_AVAILABLE_IN_1_0
      22                 :             : GFile                   * valent_message_attachment_get_file    (ValentMessageAttachment *attachment);
      23                 :             : VALENT_AVAILABLE_IN_1_0
      24                 :             : void                      valent_message_attachment_set_file    (ValentMessageAttachment *attachment,
      25                 :             :                                                                  GFile                   *file);
      26                 :             : VALENT_AVAILABLE_IN_1_0
      27                 :             : GIcon                   * valent_message_attachment_get_preview (ValentMessageAttachment *attachment);
      28                 :             : VALENT_AVAILABLE_IN_1_0
      29                 :             : void                      valent_message_attachment_set_preview (ValentMessageAttachment *attachment,
      30                 :             :                                                                  GIcon                   *preview);
      31                 :             : 
      32                 :             : G_END_DECLS
        

Generated by: LCOV version 2.0-1