Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base case of recursive list function not considered covered #49

Open
eddsteel opened this issue May 7, 2013 · 0 comments
Open

Base case of recursive list function not considered covered #49

eddsteel opened this issue May 7, 2013 · 0 comments

Comments

@eddsteel
Copy link

eddsteel commented May 7, 2013

I'm seeing the following in my coverage report:

11    def interpolate(sep: String)(list: List[Array[Byte]]): List[Array[Byte]] = list match {
*12*        case Nil => List*()*
13      case List(x) => List(x)
14      case h :: t => h :: sep.getBytes() :: interpolate(sep)(t)
15    } 

Line 12 has the parens in red (I guess because the function is never called with an empty list). Of course every call to this function involves this line, because it's the base case of the recursion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant