Skip to content

Commit 3cc2650

Browse files
Add UTF-8 validation documentation and tests for proto2, proto3, and editions for Java Protobuf
PiperOrigin-RevId: 923673073
1 parent 54b6241 commit 3cc2650

17 files changed

Lines changed: 2707 additions & 0 deletions
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Remove code enclosed by "BEGIN FULL-RUNTIME" and "END FULL-RUNTIME" to
2+
# create the lite-only version of a test file.
3+
4+
BEGIN {
5+
in_full_runtime = 0;
6+
}
7+
8+
/BEGIN FULL-RUNTIME/ {
9+
in_full_runtime = 1;
10+
next;
11+
}
12+
13+
/END FULL-RUNTIME/ {
14+
in_full_runtime = 0;
15+
next;
16+
}
17+
18+
in_full_runtime {
19+
# Skip full runtime code path.
20+
next;
21+
}
22+
23+
{
24+
print;
25+
}

0 commit comments

Comments
 (0)