Closed JanX2 closed 10 years ago
Before I can merge this:
You can avoid the -description methods from being counted (no sense in unit testing those) by adding
#ifndef COVERAGE
// not visible to coverage
#endif
Or you can remove the unused methods since this is an internal class not part of the public API.
here's the latest coverage report, still some work remaining. https://coveralls.io/files/77766412
_lineIndexContainingIndex: does not seem to be used any more, you should remove it.
implementing a unit test for description is relatively
Did that just for the fun of it. :)
Please keep/modify the class prefix generally DT - to avoid potential conflicts if somebody is using JXRangeArray in some other project, otherwise you risk duplicate symbols.
I would prefer to:
As this is OSS, anyone needing a different version of JXRangeArray later on can just fork this repo and update the submodule then (or just modify JXRangeArray in-place).
As far as I understand somebody using DTMarkdownParser doesn't have to give attribution, right? Just keep the copyright in the header in tact, yes?
That is my understanding as well when considering source code, as the license is included. Binary builds will have to include the license text as per the license.
Please make sure that Code Coverage for your added classes is 100%. Right now the class is only at 76. I am getting close!
You can avoid the -description methods from being counted…
Done.
Sorry, but i have to insist on renaming the class.
Why? Are there any more technical reasons for doing so?
If the code is local then it would be causing a conflict when being used together with another project using the same class. It is not ready to be a submodule (missing docs, no cocoapod, no repo) and adding a dependency for only this is inconvenient for users of this. I know painfully from other projects that people often don't understand how to also get the dependencies.
I see no other way.
If dependencies ever are a problem, you can use fake submodules. They are a bit of a bitch when it comes to making changes locally, though. You have two histories to maintain. The one in your repo and the other in the fake submodule.
Anyway. Let’s cross the renaming-issue-bridge once I actually move JXRangeArray to it’s own repository. It’s pretty improbable someone using it will cause an accidental collision before that.
We can then include it via a fake submodule and use a branch with commits that do all the renaming for internal use here. If there are upstream changes in JXRangeArray, it’s easy to rebase the renaming on the upstream changes. Been there, done that. It’s easy and it’s also easy to maintain. Better than a manual rename in any case.
I promise to do the renaming once JXRangeArray does everything we need here, at which point I will move it to it’s very own repo.
You are missing the point: I have decided that there will be no submodule fake or otherwise.
Rename the class or I can never merge it in.
Fake submodules evade the problem you have described: people often don't understand dependencies. Those people will never have any problem as the files are all right there in the main repo.
I do not want to rename the class now only to have to rename it back later. That would be silly.
In any case: OCMockito already is a submodule.
I have removed the OCMockito dependency a long time ago.
There is no point arguing with me over my decision and goal related to submodules, fake or otherwise. I am not going to merge this ever.