hashgraph / hashgraph/pbj

ProtoParserToolsTest.testReadString() fails if string length is zero

Open
#397 1 comment 0 reactions 0 assignees View on GitHub
Good First Issue
Dominant language
Java
Stars
44
Forks
15
Avg merge
1d 15h
Merged PRs (30d)
12

Description

`ProtoParserToolsTest.testReadString()` generates a random string to test `ProtoParserTools.readString()`. Generated string length is random in interval [0, 100). This length is passed to `RandomString` utility class, which throws an exception, if the length is zero. The test should be corrected to not allow zero string lengths, and other tests that use `RandomString` should be inspected to have the same issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.