Code example for BitSet

Methods: get

0
    smg.addObject(obj1);
    SMGEdgeHasValue hv = new SMGEdgeHasValue(mockType, 4, obj1, smg.getNullValue());
    smg.addHasValueEdge(hv);
 
    BitSet bs = smg.getNullBytesForObject(obj1);
    Assert.assertFalse(bs.get(0));
    Assert.assertFalse(bs.get(3));
    Assert.assertTrue(bs.get(4));
    Assert.assertTrue(bs.get(7));
  } 
 
  @Test 
  public void replaceHVSetTest(){ 
    SMGEdgeHasValue hv = new SMGEdgeHasValue(mockType, 2, obj1, val1.intValue());
    Set<SMGEdgeHasValue> hvSet = new HashSet<>();
    hvSet.add(hv);
 
    smg.replaceHVSet(hvSet);
 
    Set<SMGEdgeHasValue> newHVSet = smg.getHVEdges();