File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -63,14 +63,3 @@ message Embed {
6363message RepeatedEmbedSkip {
6464 repeated Embed val = 1 [(buf.validate.field ) .repeated.items.ignore = IGNORE_ALWAYS ];
6565}
66- /* message MapInts { */
67- /* map<int64, int64> stuff = 1 [(buf.validate.field).map.(maxim) = 4]; */
68- /* map<int64, int64> stuff2 = 2 [(buf.validate.field).map.(maxim2) = 4]; */
69- /* map<int64, int64> stuff3 = 3 [(buf.validate.field).map.(maxim3) = 4]; */
70- /* map<int64, int64> stuff4 = 4 [(buf.validate.field).map.(maxim4) = 4]; */
71- /* map<int64, int64> stuff5 = 5 [(buf.validate.field).map.(maxim5) = 4]; */
72- /* map<int64, int64> stuff6 = 6 [(buf.validate.field).map.(maxim6) = 4]; */
73- /* map<int64, int64> stuff7 = 7 [(buf.validate.field).map.(maxim7) = 4]; */
74- /* map<int64, int64> stuff8 = 8 [(buf.validate.field).map.(maxim8) = 4]; */
75- /* map<int64, int64> stuff9 = 9 [(buf.validate.field).map.(maxim9) = 4]; */
76- /* } */
Original file line number Diff line number Diff line change @@ -77,22 +77,6 @@ def test_maps(self):
7777 violations = protovalidate .collect_violations (msg )
7878 assert len (violations ) == 1
7979
80- # def test_map_max(self):
81- # msg = validations_pb2.MapInts()
82- # msg.stuff9[1] = 2
83- # msg.stuff9[2] = 2
84- # msg.stuff9[3] = 2
85- # try:
86- # protovalidate.validate(msg)
87- # except protovalidate.ValidationError as e:
88- # print(e.violations[0])
89- # # assert len(e.violations) == 1
90- # print(e.to_proto().violations[0])
91- # # assert str(e) == "invalid MapInts"
92-
93- # # violations = protovalidate.collect_violations(msg)
94- # # assert len(violations) == 1
95-
9680 def test_timestamp (self ):
9781 msg = validations_pb2 .TimestampGTNow ()
9882 protovalidate .validate (msg )
You can’t perform that action at this time.
0 commit comments