Skip to content
Snippets Groups Projects
Commit dc8d26dd authored by ko_oler's avatar ko_oler
Browse files

удалены лишние тесты

parent 530872df
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,6 @@ import ( ...@@ -5,7 +5,6 @@ import (
"testing" "testing"
"git.perx.ru/perxis/perxis-go/pkg/schema/validate" "git.perx.ru/perxis/perxis-go/pkg/schema/validate"
pb "git.perx.ru/perxis/perxis-go/proto/extensions"
) )
func Test_getEnumOpt(t *testing.T) { func Test_getEnumOpt(t *testing.T) {
...@@ -24,44 +23,6 @@ func Test_getEnumOpt(t *testing.T) { ...@@ -24,44 +23,6 @@ func Test_getEnumOpt(t *testing.T) {
{Name: "w", Value: float64(1000)}, {Name: "w", Value: float64(1000)},
}, },
}, },
{
name: "#2",
opts: pb.Action_Kind_name,
want: []validate.EnumOpt{
{Name: "DEFAULT", Value: float64(0)},
{Name: "SPACE", Value: float64(1)},
{Name: "ENVIRONMENT", Value: float64(2)},
{Name: "COLLECTION", Value: float64(3)},
{Name: "ITEM", Value: float64(4)},
{Name: "ITEMS", Value: float64(5)},
{Name: "REVISION", Value: float64(6)},
{Name: "CREATE", Value: float64(7)},
},
},
{
name: "#3",
opts: pb.Action_View_name,
want: []validate.EnumOpt{
{Name: "DEFAULT_VIEW", Value: float64(0)},
{Name: "HIDDEN_VIEW", Value: float64(1)},
{Name: "MAIN_MENU_VIEW", Value: float64(2)},
{Name: "MAIN_MENU_BOTTOM_VIEW", Value: float64(3)},
},
},
{
name: "#4",
opts: pb.Target_name,
want: []validate.EnumOpt{
{Name: "DEFAULT", Value: float64(0)},
{Name: "MODAL", Value: float64(1)},
{Name: "WIDE", Value: float64(2)},
{Name: "MAIN", Value: float64(4)},
{Name: "DRAWER", Value: float64(5)},
{Name: "NOTIFICATION", Value: float64(6)},
{Name: "BLANK", Value: float64(7)},
{Name: "NONE", Value: float64(100)},
},
},
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment