crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Commits
93ddcf46
🤬
Sign In
fix font modifiers test coverage and style nitpicks
Carson McManus
committed
4 years ago
93ddcf46
1 parent
4946857f
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
Total 4 files
Show one by one
■ ■ ■ ■
■ ■
cell/cell_test.go
skipped 79 lines
80
80
Italic(),
81
81
Underline(),
82
82
Strikethrough(),
83
+
Inverse(),
84
+
Blink(),
83
85
},
84
86
want: &Options{
85
87
Bold: true,
86
88
Italic: true,
87
89
Underline: true,
88
90
Strikethrough: true,
91
+
Inverse: true,
92
+
Blink: true,
89
93
},
90
94
},
91
95
}
skipped 11 lines
All occurrences
■ ■ ■ ■ ■
■
terminal/tcell/cell_options.go
skipped 62 lines
63
63
fg := cellColor(colorToMode(opts.FgColor, colorMode))
64
64
bg := cellColor(colorToMode(opts.BgColor, colorMode))
65
65
66
-
st = st.Foreground(fg).Background(bg).Bold(opts.Bold).Italic(opts.Italic).Underline(opts.Underline).StrikeThrough(opts.Strikethrough).Reverse(opts.Inverse).Blink(opts.Blink)
66
+
st = st.Foreground(fg).
67
+
Background(bg).
68
+
Bold(opts.Bold).
69
+
Italic(opts.Italic).
70
+
Underline(opts.Underline).
71
+
StrikeThrough(opts.Strikethrough).
72
+
Reverse(opts.Inverse).
73
+
Blink(opts.Blink)
67
74
return st
68
75
}
69
76
All occurrences
■ ■ ■
■ ■ ■
terminal/termbox/cell_options.go
skipped 48 lines
49
49
if opts.Bold {
50
50
a |= tbx.AttrBold
51
51
}
52
-
//
FIXME
:
Termbox doesn't have an italics attribute
52
+
// Termbox doesn't have an italics attribute
53
53
if opts.Italic {
54
54
return 0, errors.New("Termbox: Unsupported attribute: Italic")
55
55
}
56
56
if opts.Underline {
57
57
a |= tbx.AttrUnderline
58
58
}
59
-
//
FIXME
:
Termbox doesn't have a strikethrough attribute
59
+
// Termbox doesn't have a strikethrough attribute
60
60
if opts.Strikethrough {
61
61
return 0, errors.New("Termbox: Unsupported attribute: Strikethrough")
62
62
}
63
63
if opts.Inverse {
64
64
a |= tbx.AttrReverse
65
65
}
66
-
//
FIXME
:
Termbox doesn't have a blink attribute
66
+
// Termbox doesn't have a blink attribute
67
67
if opts.Blink {
68
68
return 0, errors.New("Termbox: Unsupported attribute: Blink")
69
69
}
skipped 8 lines
All occurrences
■
■
■ ■ ■ ■
terminal/termbox/cell_options_test.go
skipped 59 lines
60
60
{cell.Options{Underline: true}, tbx.AttrUnderline, false},
61
61
{cell.Options{Italic: true}, 0, true},
62
62
{cell.Options{Strikethrough: true}, 0, true},
63
-
{cell.Options{Inverse: true}, tbx.AttrReverse,
true
},
63
+
{cell.Options{Inverse: true}, tbx.AttrReverse,
false
},
64
64
{cell.Options{Blink: true}, 0, true},
65
65
}
66
66
skipped 16 lines
All occurrences
Please wait...
Page is in error, reload to recover