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

tstack / lnav / 18882433814-2607

28 Oct 2025 04:45PM UTC coverage: 68.89% (-1.1%) from 70.002%
18882433814-2607

push

github

tstack
[hasher] fixup hasher::to_string() for sse2

5 of 5 new or added lines in 1 file covered. (100.0%)

2926 existing lines in 57 files now uncovered.

50208 of 72881 relevant lines covered (68.89%)

424460.54 hits per line

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

26.67
/src/msg.text.cc
1
/**
2
 * Copyright (c) 2025, Timothy Stack
3
 *
4
 * All rights reserved.
5
 *
6
 * Redistribution and use in source and binary forms, with or without
7
 * modification, are permitted provided that the following conditions are met:
8
 *
9
 * * Redistributions of source code must retain the above copyright notice, this
10
 * list of conditions and the following disclaimer.
11
 * * Redistributions in binary form must reproduce the above copyright notice,
12
 * this list of conditions and the following disclaimer in the documentation
13
 * and/or other materials provided with the distribution.
14
 * * Neither the name of Timothy Stack nor the names of its contributors
15
 * may be used to endorse or promote products derived from this software
16
 * without specific prior written permission.
17
 *
18
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY
19
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
 * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
22
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
 */
29

30
#include "msg.text.hh"
31

32
#include "base/lnav.console.hh"
33

34
using namespace lnav::roles::literals;
35

36
namespace lnav::messages::view {
37

38
const std::vector<attr_line_t>*
39
no_files()
83✔
40
{
41
    static const auto retval
42
        = lnav::console::user_message::info(
2✔
43
              "No log or text files are currently loaded")
44
              .with_help(attr_line_t("Use the ")
2✔
45
                             .append(":open"_keyword)
1✔
46
                             .append(" command to open a file or directory"))
1✔
47
              .to_attr_line()
5✔
48
              .split_lines();
84✔
49

50
    return &retval;
83✔
51
}
52

53
const std::vector<attr_line_t>*
UNCOV
54
only_text_files()
×
55
{
56
    static const auto retval
UNCOV
57
        = lnav::console::user_message::info(
×
58
              "Only text files are currently loaded, they have not been "
59
              "detected as log files")
UNCOV
60
              .with_note(
×
61
                  "Check the Files panel below to get more details on why the "
62
                  "files are treated as text")
UNCOV
63
              .with_help(attr_line_t("Press '")
×
UNCOV
64
                             .append("t"_hotkey)
×
UNCOV
65
                             .append("' to switch to the TEXT view"))
×
UNCOV
66
              .to_attr_line()
×
UNCOV
67
              .split_lines();
×
68

UNCOV
69
    return &retval;
×
70
}
71

72
const std::vector<attr_line_t>*
73
only_log_files()
×
74
{
75
    static const auto retval
76
        = lnav::console::user_message::info(
×
77
              "All loaded files have been detected as logs, there are no plain "
78
              "text files")
79
              .with_help(attr_line_t("Press '")
×
80
                             .append("q"_hotkey)
×
81
                             .append("' to exit this view"))
×
82
              .to_attr_line()
×
83
              .split_lines();
×
84

85
    return &retval;
×
86
}
87

88
const std::vector<attr_line_t>*
89
empty_file()
×
90
{
91
    static const auto retval
92
        = lnav::console::user_message::info(
×
93
              "File is empty, content will be shown when added")
94
              .to_attr_line()
×
95
              .split_lines();
×
96

97
    return &retval;
×
98
}
99

100
}  // namespace lnav::messages::view
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc