Esempio n. 1
0
    def convertToPatchMethod(self):
        converted = PatchMethod(self.name)
        converted.total_add = self.total_add
        converted.total_del = self.total_del
        converted.exceptionDictonary = self.excepDict.copy()
        converted.exception_add = self.etotal_add
        converted.exception_del = self.etotal_del

        # for nextAssert in self.assertionList:
        #
        #     if(nextAssert[1]==ADD):
        #         converted.assert_add += 1
        #         if(self.name==MOCK):
        #             converted.total_add += 1
        #     elif(nextAssert[1]==REMOVE):
        #         converted.assert_del += 1
        #         if(self.name==MOCK):
        #             converted.total_del += 1

        return converted
Esempio n. 2
0
    def convertToPatchMethod(self):
        converted = PatchMethod(self.name)
        converted.total_add = self.total_add
        converted.total_del = self.total_del
        converted.exceptionDictonary=self.excepDict.copy()
        converted.exception_add=self.etotal_add
        converted.exception_del=self.etotal_del



        # for nextAssert in self.assertionList:
        #
        #     if(nextAssert[1]==ADD):
        #         converted.assert_add += 1
        #         if(self.name==MOCK):
        #             converted.total_add += 1
        #     elif(nextAssert[1]==REMOVE):
        #         converted.assert_del += 1
        #         if(self.name==MOCK):
        #             converted.total_del += 1

        return converted