0

您能否就我如何为私有函数编写 JUnit 测试用例提供宝贵意见

 private int readCustomLine(Text str, int maxLineLength, int maxBytesToConsume)
      throws IOException {

在hadoop中。

该函数是从以下公共函数调用的 -

public int readLine(Text str, int maxLineLength,
                      int maxBytesToConsume) throws IOException {

它属于org.apache.hadoop.util包中的LineReader类。

对此很困惑,因为我之前没有写过任何测试用例,这方面的另一个问题是我们需要在这里解决一个大数据集。

4

0 回答 0