Github user spmallette commented on a diff in the pull request:

    https://github.com/apache/incubator-tinkerpop/pull/333#discussion_r66296879
  
    --- Diff: 
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java
 ---
    @@ -721,14 +732,18 @@ public static void assertCrewGraph(final Graph g1, 
final boolean lossyForId) {
         }
     
         public static void assertClassicGraph(final Graph g1, final boolean 
assertDouble, final boolean lossyForId) {
    -        assertToyGraph(g1, assertDouble, lossyForId, false);
    +        assertToyGraph(g1, assertDouble, lossyForId, false, true);
    +    }
    +
    +    public static void assertNoEdgeGraph(final Graph g1, final boolean 
assertDouble, final boolean lossyForId) {
    +        assertToyGraph(g1, assertDouble, lossyForId, false, false);
         }
     
         public static void assertModernGraph(final Graph g1, final boolean 
assertDouble, final boolean lossyForId) {
    -        assertToyGraph(g1, assertDouble, lossyForId, true);
    +        assertToyGraph(g1, assertDouble, lossyForId, true, true);
         }
     
    -    private static void assertToyGraph(final Graph g1, final boolean 
assertDouble, final boolean lossyForId, final boolean assertSpecificLabel) {
    +    private static void assertToyGraph(final Graph g1, final boolean 
assertDouble, final boolean lossyForId, final boolean assertSpecificLabel, 
final boolean assertEdgeLabel) {
    --- End diff --
    
    right - but you've modified a core piece of code with `assertToyGraph` by 
adding logic that really doesn't generally apply to anything else that would 
use that logic besides `shouldReadGraphMLWithNoEdgeLabels` which is testing a 
version of "toy graph" that is not even a legitimate representation of our toy 
graph because it has no labels. 
    
    I would prefer that you simplify your `shouldReadGraphMLWithNoEdgeLabels` 
test to read some graphml with just two vertices and an edge with no label and 
then assert that entirely within that test method. Then your test and changes 
are isolated specifically to just `shouldReadGraphMLWithNoEdgeLabels` and that 
core logic remains unchanged.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to