Projects STRLCPY termdash Commits 954b43c8
🤬
  • ■ ■ ■ ■ ■
    .travis.yml
    skipped 12 lines
    13 13   - diff -u <(echo -n) <(gofmt -d -s .)
    14 14   - diff -u <(echo -n) <(./internal/scripts/autogen_licences.sh .)
    15 15   - diff -u <(echo -n) <(golint ./...)
    16  -after_success:
    17  - - ./internal/scripts/coverage.sh
    18 16  env:
    19 17   global:
    20  - - CGO_ENABLED=0
     18 + - CGO_ENABLED=0
    21 19   
  • ■ ■ ■ ■ ■
    CHANGELOG.md
    skipped 6 lines
    7 7   
    8 8  ## [Unreleased]
    9 9   
     10 +## [0.12.1] - 20-Jun-2020
     11 + 
     12 +### Fixed
     13 + 
     14 +- the `tcell` unit test can now pass in headless mode (when TERM="") which
     15 + happens under bazel.
     16 +- switching coveralls integration to Github application.
     17 + 
    10 18  ## [0.12.0] - 10-Apr-2020
    11 19   
    12 20  ### Added
    skipped 312 lines
    325 333  - The Gauge widget.
    326 334  - The Text widget.
    327 335   
    328  -[unreleased]: https://github.com/mum4k/termdash/compare/v0.12.0...devel
     336 +[unreleased]: https://github.com/mum4k/termdash/compare/v0.12.1...devel
     337 +[0.12.1]: https://github.com/mum4k/termdash/compare/v0.12.0...v0.12.1
    329 338  [0.12.0]: https://github.com/mum4k/termdash/compare/v0.11.0...v0.12.0
    330 339  [0.11.0]: https://github.com/mum4k/termdash/compare/v0.10.0...v0.11.0
    331 340  [0.10.0]: https://github.com/mum4k/termdash/compare/v0.9.1...v0.10.0
    skipped 13 lines
  • ■ ■ ■ ■ ■ ■
    private/scripts/coverage.sh
    1  -#!/bin/bash
    2  - 
    3  -go get github.com/go-playground/overalls && go get github.com/mattn/goveralls
    4  - 
    5  -overalls -project=github.com/mum4k/termdash -covermode=count
    6  -goveralls -coverprofile=overalls.coverprofile -service travis-ci
    7  - 
  • ■ ■ ■ ■ ■
    terminal/tcell/tcell.go
    skipped 15 lines
    16 16   
    17 17  import (
    18 18   "context"
     19 + "fmt"
    19 20   "image"
    20 21   
    21 22   "github.com/gdamore/tcell"
    skipped 57 lines
    79 80   clearStyle *cell.Options
    80 81  }
    81 82   
     83 +// tcellNewScreen can be overridden from tests.
     84 +var tcellNewScreen = tcell.NewScreen
     85 + 
    82 86  // newTerminal creates the terminal and applies the options.
    83 87  func newTerminal(opts ...Option) (*Terminal, error) {
    84  - screen, err := tcell.NewScreen()
     88 + screen, err := tcellNewScreen()
    85 89   if err != nil {
    86  - return nil, err
     90 + return nil, fmt.Errorf("tcell.NewScreen => %v", err)
    87 91   }
    88 92   
    89 93   t := &Terminal{
    skipped 112 lines
  • ■ ■ ■ ■ ■
    terminal/tcell/tcell_test.go
    skipped 16 lines
    17 17  import (
    18 18   "testing"
    19 19   
     20 + "github.com/gdamore/tcell"
    20 21   "github.com/kylelemons/godebug/pretty"
    21 22   "github.com/mum4k/termdash/cell"
    22 23   "github.com/mum4k/termdash/terminal/terminalapi"
    skipped 22 lines
    45 46   },
    46 47   }
    47 48   
     49 + tcellNewScreen = func() (tcell.Screen, error) { return nil, nil }
    48 50   for _, tc := range tests {
    49 51   t.Run(tc.desc, func(t *testing.T) {
    50 52   got, err := newTerminal(tc.opts...)
    51 53   if err != nil {
    52 54   t.Errorf("newTerminal => unexpected error:\n%v", err)
     55 + return
    53 56   }
    54 57   
    55 58   // Ignore these fields.
    skipped 40 lines
    96 99   },
    97 100   }
    98 101   
     102 + tcellNewScreen = func() (tcell.Screen, error) { return nil, nil }
    99 103   for _, tc := range tests {
    100 104   t.Run(tc.desc, func(t *testing.T) {
    101 105   got, err := newTerminal(tc.opts...)
    102 106   if err != nil {
    103 107   t.Errorf("newTerminal => unexpected error:\n%v", err)
     108 + return
    104 109   }
    105 110   
    106 111   // Ignore these fields.
    skipped 11 lines
Please wait...
Page is in error, reload to recover