• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sile-typesetter / sile / 14510870853

17 Apr 2025 07:55AM UTC coverage: 31.472% (-25.8%) from 57.267%
14510870853

push

github

web-flow
Merge pull request #2267 from Omikhleia/feat-csl-position

0 of 109 new or added lines in 2 files covered. (0.0%)

4871 existing lines in 34 files now uncovered.

6341 of 20148 relevant lines covered (31.47%)

2774.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

74.51
/outputters/base.lua
1
--- SILE outputter class.
2
-- @interfaces outputters
3

4
local outputter = pl.class()
11✔
5
outputter.type = "outputter"
11✔
6
outputter._name = "base"
11✔
7

8
function outputter:_init ()
11✔
9
   SU._avoid_base_class_use(self)
11✔
10
   self.hooks = {}
11✔
11
end
12

13
function outputter:registerHook (category, func)
11✔
UNCOV
14
   if not self.hooks[category] then
×
UNCOV
15
      self.hooks[category] = {}
×
16
   end
UNCOV
17
   table.insert(self.hooks[category], func)
×
18
end
19

20
function outputter:runHooks (category, data)
11✔
21
   if not self.hooks[category] then
11✔
22
      return nil
11✔
23
   end
UNCOV
24
   for _, func in ipairs(self.hooks[category]) do
×
UNCOV
25
      data = func(self, data)
×
26
   end
UNCOV
27
   return data
×
28
end
29

30
function outputter:newPage () end
11✔
31

32
function outputter:abort ()
11✔
33
   return self:finish() -- unless otherwise defined
×
34
end
35

36
function outputter:finish ()
11✔
37
   self:runHooks("prefinish")
×
38
end
39

40
function outputter:getCursor () end
11✔
41

42
function outputter:setCursor (_, _, _) end
11✔
43

44
function outputter:setColor () end
11✔
45

46
function outputter:pushColor () end
11✔
47

48
function outputter:popColor () end
11✔
49

50
function outputter:drawHbox (_, _) end
11✔
51

52
function outputter:setFont (_) end
11✔
53

54
function outputter:drawImage (_, _, _, _, _) end
11✔
55

56
function outputter:getImageSize (_) end
11✔
57

58
function outputter:drawSVG () end
11✔
59

60
function outputter:drawRule (_, _, _, _) end
11✔
61

62
function outputter:debugFrame (_, _) end
11✔
63

64
function outputter:debugHbox (_, _) end
11✔
65

66
function outputter:setLinkAnchor (_, _) end -- Unstable API
11✔
67

68
function outputter:beginLink (_, _) end -- Unstable API
11✔
69

70
function outputter:endLink (_, _, _, _, _, _) end -- Unstable API
11✔
71

72
function outputter:setMetadata (_, _) end
11✔
73

74
function outputter:setBookmark (_, _) end
11✔
75

76
function outputter:drawRaw () end
11✔
77

78
function outputter:getOutputFilename ()
11✔
79
   local fname
80
   if SILE.outputFilename then
22✔
81
      fname = SILE.outputFilename
22✔
82
   elseif SILE.input.filenames[1] then
×
83
      fname = pl.path.splitext(SILE.input.filenames[1])
×
84
      if self.extension then
×
85
         fname = fname .. "." .. self.extension
×
86
      end
87
   end
88
   if not fname then
22✔
89
      SU.error("Cannot guess output filename without an input name")
×
90
   end
91
   return fname
22✔
92
end
93

94
return outputter
11✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc