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

sile-typesetter / sile / 11124789710

01 Oct 2024 11:57AM UTC coverage: 29.567% (-31.4%) from 60.926%
11124789710

push

github

web-flow
Merge pull request #2105 from Omikhleia/refactor-collated-sort

0 of 10 new or added lines in 1 file covered. (0.0%)

5252 existing lines in 53 files now uncovered.

5048 of 17073 relevant lines covered (29.57%)

1856.13 hits per line

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

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

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

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

13
function outputter:registerHook (category, func)
1✔
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)
1✔
21
   if not self.hooks[category] then
1✔
22
      return nil
1✔
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
1✔
31

32
function outputter:finish ()
1✔
33
   self:runHooks("prefinish")
×
34
end
35

36
function outputter.getCursor () end
1✔
37

38
function outputter.setCursor (_, _, _, _) end
1✔
39

40
function outputter.setColor () end
1✔
41

42
function outputter.pushColor () end
1✔
43

44
function outputter.popColor () end
1✔
45

46
function outputter.drawHbox (_, _, _) end
1✔
47

48
function outputter.setFont (_, _) end
1✔
49

50
function outputter.drawImage (_, _, _, _, _, _) end
1✔
51

52
function outputter.getImageSize (_, _) end
1✔
53

54
function outputter.drawSVG () end
1✔
55

56
function outputter.drawRule (_, _, _, _, _) end
1✔
57

58
function outputter.debugFrame (_, _, _) end
1✔
59

60
function outputter.debugHbox (_, _, _) end
1✔
61

62
function outputter.setLinkAnchor (_, _, _) end -- Unstable API
1✔
63

64
function outputter.beginLink (_, _, _) end -- Unstable API
1✔
65

66
function outputter.endLink (_, _, _, _, _, _, _) end -- Unstable API
1✔
67

68
function outputter.setMetadata (_, _, _) end
1✔
69

70
function outputter.setBookmark (_, _, _) end
1✔
71

72
function outputter.drawRaw (_) end
1✔
73

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

90
return outputter
1✔
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