@@ -30,6 +30,32 @@ func TestUserConfigValidate_enums(t *testing.T) {
30
30
{value : "invalid_value" , valid : false },
31
31
},
32
32
},
33
+ {
34
+ name : "Gui.ShowDivergenceFromBaseBranch" ,
35
+ setup : func (config * UserConfig , value string ) {
36
+ config .Gui .ShowDivergenceFromBaseBranch = value
37
+ },
38
+ testCases : []testCase {
39
+ {value : "none" , valid : true },
40
+ {value : "onlyArrow" , valid : true },
41
+ {value : "arrowAndNumber" , valid : true },
42
+ {value : "" , valid : false },
43
+ {value : "invalid_value" , valid : false },
44
+ },
45
+ },
46
+ {
47
+ name : "Git.AutoForwardBranches" ,
48
+ setup : func (config * UserConfig , value string ) {
49
+ config .Git .AutoForwardBranches = value
50
+ },
51
+ testCases : []testCase {
52
+ {value : "none" , valid : true },
53
+ {value : "onlyMainBranches" , valid : true },
54
+ {value : "allBranches" , valid : true },
55
+ {value : "" , valid : false },
56
+ {value : "invalid_value" , valid : false },
57
+ },
58
+ },
33
59
{
34
60
name : "Keybindings" ,
35
61
setup : func (config * UserConfig , value string ) {
0 commit comments