Branch Coverage

File:config/gen/opengl.pm
Coverage:70.3%

line%coveragebranch
50100TFunless @_
5250TFif &$f()
424100TFunless ($conf->data->get('has_opengl'))
43250TFif (scalar @include_paths_win32 == 0 and $osname =~ /mswin32/i)
49050TFif $^O eq 'cygwin' and not $ENV{'DISPLAY'}
50450TFunless @header_files
54050TFunless open my $header, '<', $file
547100TFunless @F > 2 and $F[0] eq '#define'
548100TFunless $F[1] =~ /^(AGL|CGL|WGL|GLX|MUI|SMAP|TUBE|GL[A-Z]*)_/
54950TFif $F[1] =~ /\(/
551100TFif $max_len < length $F[1]
554100TFif ($F[2] =~ /^(?:[ACW])?GL[A-Z]*_\w+$/)
55750TFif ($F[2] =~ /^\(?((?:[ACW])?GL[A-Z]*_\w+)([+-]\d+(?:\.\d*)?(?:e\d+)?)\)?$/) { }
100TFelsif ($F[2] =~ /^0x[0-9a-fA-F]+$/ or $F[2] =~ /^\d+(?:\.\d*)?(?:e\d+)?$/) { }
57550TFunless (defined $defs{$val_api}{$value})
5760TFif $non_numeric{$define}
58250TFif defined $offset
58550TFunless open my $macros, '>', $MACRO_FILE
61550TFunless open my $header, '<', $file
622100TFif (m[/\*])
629100TFunless /\(/
630100TFunless (/\)/)
637100TFunless /API/ or /\bextern\b/ or /\bmui[A-Z]/
638100TFif /^#/
639100TFif /\btypedef\b/
64250TFif /^\s*extern\s+\w+\s+\(\*\s+/
64550TFif /\bFGUNUSED\b/
676100TFunless $C_TYPE{$1}
683100TFunless defined $name
68650TFif (defined $name)
688100TFif /\bglut[A-Z][a-zA-Z]+Func\b/
68950TFif /\bsmap[A-Z][a-zA-Z]+Func\b/
69250TFif $name =~ /^__/
69350TFif $name =~ /_ATEXIT_HACK$/
696100TFif $IGNORE{$name}
70050TFunless (defined $return and defined $name and defined $params)
71050TFunless ($group)
719100TFunless $OVERRIDE{$name}
100TFunless ${[] unless $OVERRIDE{$name};}[0]
720100TFunless $OVERRIDE{$name}
100TFunless ${[] unless $OVERRIDE{$name};}[1]
722100TFunless (@nci_sig)
723100TFif $params eq 'void'
729100TFunless $NCI_TYPE{$param}
73050TFunless ($NCI_TYPE{$param})
7320TFif $verbose
74050TFif (any(sub { $_ eq 'void'; } , @nci_sig[1 .. $#nci_sig]))
7420TFif $verbose
754100TFif $verbose >= 3
76250TFunless open my $sigs, '>', $SIGS_FILE
78950TFunless open my $funcs, '>', $FUNCS_FILE
934100TFif ($verbose)
948100TFif $verbose >= 2
950100TFif $verbose >= 2
96850TFif $glut_api >= 2
96950TFif $glut_api >= 3
97050TFif $glut_api >= 4
97150TFif $glut_brand eq 'freeglut'
97250TFif $glut_brand eq 'freeglut' or $glut_brand eq 'MacOSX_GLUT'
97550TF$glut_brand eq 'freeglut' ? :
50TF$glut_brand eq 'OpenGLUT' ? :
50TF$glut_brand eq 'MacOSX_GLUT' ? :
988100TFif $args
124250TFunless open my $c_file, '>', $C_FILE