File Coverage

blib/lib/Gtk3/SourceView.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             package Gtk3::SourceView;
2              
3 1     1   13171 use strict;
  1         1  
  1         22  
4 1     1   3 use warnings;
  1         1  
  1         18  
5 1     1   161 use Glib::Object::Introspection;
  0            
  0            
6              
7             our $VERSION = "0.12";
8              
9              
10             # customization ------------------------------------------------------- #
11              
12             my %_NAME_CORRECTIONS = (
13             );
14             my @_CLASS_STATIC_METHODS = qw/
15             Gtk3::SourceView::LanguageManager::get_default
16             Gtk3::SourceView::StyleSchemeManager::get_default
17              
18             Gtk3::SourceView::Encoding::get_utf8
19             Gtk3::SourceView::Encoding::get_current
20             Gtk3::SourceView::Encoding::get_from_charset
21             /;
22             my @_FLATTEN_ARRAY_REF_RETURN_FOR = qw/
23             Gtk3::SourceView::Buffer::get_context_classes_at_iter
24             Gtk3::SourceView::Buffer::get_source_marks_at_line
25             Gtk3::SourceView::Buffer::get_source_marks_at_iter
26             Gtk3::SourceView::Language::get_mime_types
27             Gtk3::SourceView::Language::get_globs
28             Gtk3::SourceView::Language::get_style_ids
29             Gtk3::SourceView::LanguageManager::get_search_path
30             Gtk3::SourceView::LanguageManager::get_language_ids
31             Gtk3::SourceView::StyleScheme::get_authors
32             Gtk3::SourceView::StyleSchemeManager::get_search_path
33             Gtk3::SourceView::StyleSchemeManager::get_scheme_ids
34             Gtk3::SourceView::Completion::get_providers
35              
36             Gtk3::SourceView::Encoding::get_all
37             Gtk3::SourceView::Encoding::get_default_candidates
38             /;
39             # unsicher bin ich mir bei folgenden funktionen (noch zu testen!!!! ich glaub eher nicht):
40             # Gtk3::SourceView::Completion::add_provider
41             # Gtk3::SourceView::Completion::remove_provider
42             # nach test: Es klappt sowohl mit als auch ohne. Ich lass die Funktionen daher raus :-)
43             #
44             # Ich glaube auch diese gehören hier nicht rein:
45             # Gtk3::SourceView::GutterRenderer::get_background
46             # Gtk3::SourceView::MarkAttributes::get_background
47             my @_HANDLE_SENTINEL_BOOLEAN_FOR = qw/
48             Gtk3::SourceView::SearchContext::forward
49             Gtk3::SourceView::SearchContext::backward
50             /;
51             my @_USE_GENERIC_SIGNAL_MARSHALLER_FOR = (
52             );
53              
54              
55             sub import {
56              
57             Glib::Object::Introspection->setup(
58             basename => 'GtkSource',
59             version => '3.0',
60             package => 'Gtk3::SourceView',
61              
62             class_static_methods =>\@_CLASS_STATIC_METHODS,
63             flatten_array_ref_return_for =>\@_FLATTEN_ARRAY_REF_RETURN_FOR,
64             handle_sentinel_boolean_for => \@_HANDLE_SENTINEL_BOOLEAN_FOR);
65             }
66              
67             1;
68             __END__