1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Rename SigilStr to PaginationMarker

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer
2020-11-26 23:06:48 -08:00
parent a18f77bfad
commit 3521ebf6e8
12 changed files with 15 additions and 13 deletions

View File

@@ -151,7 +151,9 @@ func (common *Common) RightAlignFormat(width int) string {
return fmt.Sprintf("%%%ds", width-borderOffset)
}
func (common *Common) SigilStr(len, pos, width int) string {
// PaginationMarker generates the pagination indicators that appear in the top-right corner
// of multisource widgets
func (common *Common) PaginationMarker(len, pos, width int) string {
sigils := ""
if len > 1 {

View File

@@ -144,7 +144,7 @@ func Test_RightAlignFormat(t *testing.T) {
}
}
func Test_SigilStr(t *testing.T) {
func Test_PaginationMarker(t *testing.T) {
tests := []struct {
name string
len int
@@ -184,7 +184,7 @@ func Test_SigilStr(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
assert.Equal(t, tt.expected, testCfg.SigilStr(tt.len, tt.pos, tt.width))
assert.Equal(t, tt.expected, testCfg.PaginationMarker(tt.len, tt.pos, tt.width))
})
}
}