Skip to content

Commit c05e9b0

Browse files
committed
Add error test case
1 parent b9ab640 commit c05e9b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_codegen.jl

+4
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ end
130130
s, p, ctx = translate_simple_proto("""syntax = "proto3"; option julia_package = "Foo.Bar.Baz";""", Options(always_use_modules=false))
131131
@test "Foo.Bar.Baz" == p.preamble.options["julia_package"]
132132
@test ["Foo", "Bar", "Baz"] == namespace(p)
133+
134+
@test_throws ErrorException begin
135+
translate_simple_proto("""syntax = "proto3"; option julia_package = "Foo/Bar/Baz";""", Options(always_use_modules=false))
136+
end
133137
end
134138

135139
@testset "`force_required` option makes optional fields required" begin

0 commit comments

Comments
 (0)