Update status_test.go

Move setting struct values into struct initialisation

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
This commit is contained in:
michael boulton 2020-08-14 15:07:37 +01:00 committed by GitHub
parent faa4e293ba
commit a63936f29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -69,9 +69,10 @@ func TestStatusNothing(t *testing.T) {
seedTestRepo(t, repo)
opts := &StatusOptions{}
opts.Show = StatusShowIndexAndWorkdir
opts.Flags = StatusOptIncludeUntracked | StatusOptRenamesHeadToIndex | StatusOptSortCaseSensitively
opts := &StatusOptions{
Show: StatusShowIndexAndWorkdir,
Flags: StatusOptIncludeUntracked | StatusOptRenamesHeadToIndex | StatusOptSortCaseSensitively,
}
statusList, err := repo.StatusList(opts)
checkFatal(t, err)