diff options
| author | ezwiebel <[email protected]> | 2016-09-13 16:03:16 +1000 |
|---|---|---|
| committer | ezwiebel <[email protected]> | 2016-09-13 16:03:16 +1000 |
| commit | adc3a4bd89723785b5f04dd14691472300a03bdb (patch) | |
| tree | 179b048da2adc4694f876e09f72ef214bd1ece38 /rebase_test.go | |
| parent | e00b0831aaefeceab320c8d2fdc23fffcca58168 (diff) | |
Add DefaultRebaseOptions() [git_rebase_init_options(GIT_REBASE_OPTIONS_VERSION)] service to wrapper
Diffstat (limited to 'rebase_test.go')
| -rw-r--r-- | rebase_test.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/rebase_test.go b/rebase_test.go index 745297e..f76baed 100644 --- a/rebase_test.go +++ b/rebase_test.go @@ -9,6 +9,29 @@ import ( // Tests +func TestDefaultRebaseOptions(t *testing.T) { + opts, err := DefaultRebaseOptions() + checkFatal(t, err) + + if opts.Version != 1 { + t.Error("Expected opts Version to equal 1, got ", opts.Version) + } + if opts.Quiet != 0 { + t.Error("Expected opts Quiet to equal 1, got ", opts.Quiet) + } + if opts.InMemory != 0 { + t.Error("Expected opts InMemory to equal 1, got ", opts.InMemory) + } + if opts.RewriteNotesRef != "" { + t.Error("Expected opts RewriteNotesRef to equal 1, got ", opts.RewriteNotesRef) + } + + copts := opts.toC() + if copts == nil { + t.Error("Copts should not be nil") + } +} + func TestRebaseAbort(t *testing.T) { // TEST DATA |
