Skip to content

Commit b8622f1

Browse files
authored
Lint fixes for import (#521)
Lint fixes for import.
1 parent 9768251 commit b8622f1

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

tests/simple/testdata/network_ext.textproto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ section {
1010
name: "parse_ipv4"
1111
description: "Successfully parse a standard IPv4 address"
1212
expr: "string(ip('192.168.0.1'))"
13-
value: { string_value: "192.168.0.1" }
13+
value: { string_value: "192.168.0.1" }
1414
}
1515
test {
1616
name: "parse_invalid_ipv4"
@@ -320,7 +320,7 @@ section {
320320
name: "cidr_does_not_contain_ip_ipv4_string"
321321
expr: "cidr('192.168.0.0/24').containsIP('192.168.1.1')"
322322
value: { bool_value: false }
323-
}
323+
}
324324
test {
325325
name: "cidr_contains_cidr_ipv4_object"
326326
expr: "cidr('192.168.0.0/24').containsCIDR(cidr('192.168.0.0/25'))"

tests/simple/testdata/parse.textproto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ section {
120120
name: "map_literal"
121121
description: "Primary = '{' [MapInits] '}'. Map literals with up to 32 entries."
122122
expr: "{0: 'zero', 1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine', 10: 'ten', 11: 'eleven', 12: 'twelve', 13: 'thirteen', 14: 'fourteen', 15: 'fifteen', 16: 'sixteen', 17: 'seventeen', 18: 'eighteen', 19: 'nineteen', 20: 'twenty', 21: 'twenty-one', 22: 'twenty-two', 23: 'twenty-three', 24: 'twenty-four', 25: 'twenty-five', 26: 'twenty-six', 27: 'twenty-seven', 28: 'twenty-eight', 29: 'twenty-nine', 30: 'thirty', 31: 'thirty-one'}[17]"
123-
value { string_value: 'seventeen' }
123+
value { string_value: "seventeen" }
124124
}
125125
test {
126126
name: "message_literal"
@@ -130,6 +130,8 @@ section {
130130
value { int64_value: 30 }
131131
}
132132
}
133+
134+
# txtpbfmt: off
133135
section {
134136
name: "string_literals"
135137
description: "Check that string literals are properly parsed"
@@ -944,6 +946,8 @@ section {
944946
value: { bytes_value: " \\\\ \\? \\\" \\\' \\` \\a \\b \\f \\t \\v \\n \\r \\000 \\x00 \\X00 \\u0000 \\U00000000 " }
945947
}
946948
}
949+
# txtpbfmt: on
950+
947951
section {
948952
name: "whitespace"
949953
description: "Check that whitespace is ignored by the grammar."

0 commit comments

Comments
 (0)