File Coverage

lib/SDL2/version.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package SDL2::version 0.01 {
2 2     2   14 use SDL2::Utils;
  2         4  
  2         57  
3             has major => 'uint8', minor => 'uint8', patch => 'uint8';
4              
5             =encoding utf-8
6              
7             =head1 NAME
8              
9             SDL2::version - Information About the Version of SDL in Use
10              
11             =head1 SYNOPSIS
12              
13             use SDL2 qw[:version];
14             SDL_GetVersion( my $ver = SDL2::version->new );
15             CORE::say sprintf 'SDL version %d.%d.%d', $ver->major, $ver->minor, $ver->patch;
16              
17             =head1 DESCRIPTION
18              
19             SDL2::version represents the library's version as three levels: major, minor,
20             and patch level.
21              
22             =head1 Fields
23              
24             =head2 C
25              
26             Returns value which increments with massive changes, additions, and
27             enhancements.
28              
29             =head2 C
30              
31             Returns value which increments with backwards-compatible changes to the major
32             revision.
33              
34             =head2 C
35              
36             Returns value which increments with fixes to the minor revision.
37              
38             =head1 LICENSE
39              
40             Copyright (C) Sanko Robinson.
41              
42             This library is free software; you can redistribute it and/or modify it under
43             the terms found in the Artistic License 2. Other copyrights, terms, and
44             conditions may apply to data transmitted through this module.
45              
46             =head1 AUTHOR
47              
48             Sanko Robinson Esanko@cpan.orgE
49              
50             =begin stopwords
51              
52             =end stopwords
53              
54             =cut
55              
56             };
57             1;