Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

Commit

Permalink
Make tests more compact
Browse files Browse the repository at this point in the history
Reduce LOC if possible to make it more compact and look cleaner
  • Loading branch information
ljvmiranda921 committed Mar 29, 2020
1 parent 7253b36 commit dccd27e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions pkg/barometer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ func TestUpdateLog(t *testing.T) {

func TestParseMessage(t *testing.T) {
tests := []struct {
name string
arg string
want string
want1 string
name, arg, want, want1 string
}{
{name: "single notes", arg: "4 hello", want: "4", want1: "hello"},
{name: "multiple notes", arg: "4 hello world", want: "4", want1: "hello world"},
Expand Down
4 changes: 1 addition & 3 deletions pkg/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ import (

func TestConfiguration_WriteConfiguration(t *testing.T) {
type fields struct {
Table string
Token string
Area string
Table, Token, Area string
}
tests := []struct {
name string
Expand Down

0 comments on commit dccd27e

Please sign in to comment.