parameters: (self, oTests, oInstr)
return_statement: return oTests
docstring: Adds oTests to self.aoTests, setting the oTests.offTests member.
          Checks for and eliminates duplicates.
          Returns the tests to use.
docstring_summary: Adds oTests to self.aoTests, setting the oTests.offTests member.
          Checks for and eliminates duplicates.
          Returns the tests to use.
docstring_tokens: Adds oTests to self . aoTests setting the oTests . offTests member . Checks for and eliminates duplicates . Returns the tests to use .
function: def addTests(self, oTests, oInstr): # type: (Bs3Cg1EncodedTests, iai.Instruction) -> Bs3Cg1EncodedTests
          """
          Adds oTests to self.aoTests, setting the oTests.offTests member.
          Checks for and eliminates duplicates.
          Returns the tests to use.
          """
          # Check for duplicates.
          for oExisting in self.aoTests:
              if oTests.isEqual(oExisting):
                  oExisting.aoInstructions.append(oInstr);
                  return oExisting;
  
          # New test, so add it.
          oTests.offTests = self.cbTests;
          self.aoTests.append(oTests);
          self.cbTests   += oTests.cbTests;
  
          assert not oTests.aoInstructions;
          oTests.aoInstructions.append(oInstr);
  
          return oTests;
function_tokens: def addTests ( self , oTests , oInstr ) : # type: (Bs3Cg1EncodedTests, iai.Instruction) -> Bs3Cg1EncodedTests # Check for duplicates. for oExisting in self . aoTests : if oTests . isEqual ( oExisting ) : oExisting . aoInstructions . append ( oInstr ) return oExisting # New test, so add it. oTests . offTests = self . cbTests self . aoTests . append ( oTests ) self . cbTests += oTests . cbTests assert not oTests . aoInstructions oTests . aoInstructions . append ( oInstr ) return oTests