Skip to content

Commit 01d672f

Browse files
committed
add back tmp removed test case
1 parent d077a66 commit 01d672f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

internal/librarian/java/generate_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,17 @@ func TestGenerateLibrary_Error(t *testing.T) {
322322
},
323323
targetErr: ErrExtractVersion,
324324
},
325+
{
326+
name: "no protos found",
327+
library: &config.Library{
328+
Name: "test",
329+
Output: t.TempDir(),
330+
APIs: []*config.API{
331+
{Path: "google/cloud/nonexistent/v1"},
332+
},
333+
},
334+
targetErr: ErrNoProtos,
335+
},
325336
{
326337
name: "mkdir failure for output dir",
327338
library: &config.Library{

0 commit comments

Comments
 (0)