Coverage Report

Created: 2026-03-31 11:00

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/work/workdir/UnpackedTarball/harfbuzz/src/hb-subset-table-var.cc
Line
Count
Source
1
#include "hb-subset-table.hh"
2
3
#include "hb-ot-var-hvar-table.hh"
4
#include "hb-ot-var-gvar-table.hh"
5
#include "hb-ot-var-fvar-table.hh"
6
#include "hb-ot-var-avar-table.hh"
7
#include "hb-ot-var-cvar-table.hh"
8
#include "hb-ot-var-mvar-table.hh"
9
10
bool _hb_subset_table_var   (hb_subset_plan_t *plan, hb_vector_t<char> &buf, hb_tag_t tag, bool *success)
11
72.2k
{
12
72.2k
#ifndef HB_NO_VAR
13
72.2k
  switch (tag)
14
72.2k
  {
15
0
  case HB_TAG('H','V','A','R'): *success = _hb_subset_table<const OT::HVAR> (plan, buf); return true;
16
0
  case HB_TAG('V','V','A','R'): *success = _hb_subset_table<const OT::VVAR> (plan, buf); return true;
17
0
  case HB_TAG('g','v','a','r'): *success = _hb_subset_table<const OT::gvar> (plan, buf); return true;
18
0
  case HB_TAG('f','v','a','r'):
19
0
    if (plan->user_axes_location.is_empty ())
20
0
      *success = _hb_subset_table_passthrough (plan, tag);
21
0
    else
22
0
      *success = _hb_subset_table<const OT::fvar> (plan, buf);
23
0
    return true;
24
0
  case HB_TAG('a','v','a','r'):
25
0
    if (plan->user_axes_location.is_empty ())
26
0
      *success = _hb_subset_table_passthrough (plan, tag);
27
0
    else
28
0
      *success = _hb_subset_table<const OT::avar> (plan, buf);
29
0
    return true;
30
0
  case HB_TAG('c','v','a','r'):
31
0
    if (plan->user_axes_location.is_empty ())
32
0
      *success = _hb_subset_table_passthrough (plan, tag);
33
0
    else
34
0
      *success = _hb_subset_table<const OT::cvar> (plan, buf);
35
0
    return true;
36
0
  case HB_TAG('M','V','A','R'):
37
0
    if (plan->user_axes_location.is_empty ())
38
0
      *success = _hb_subset_table_passthrough (plan, tag);
39
0
    else
40
0
      *success = _hb_subset_table<const OT::MVAR> (plan, buf);
41
0
    return true;
42
72.2k
  }
43
72.2k
#endif
44
72.2k
  return false;
45
72.2k
}