Exemple #1
0
 def testGetFormatted(self):
     param = raw_doc.RawParam(self.tok, self.txt_name, self.txt_text)
     self.assertEqual(param.getFormatted(self.formatter),
                      '@param name text\n')
     param = raw_doc.RawParam(self.tok, self.txt_name, self.txt_text,
                              self.tok_inout)
     self.assertEqual(param.getFormatted(self.formatter),
                      '@param[in,out] name text\n')
Exemple #2
0
 def testGetType(self):
     param = raw_doc.RawParam(self.tok, self.txt_name, self.txt_text)
     self.assertEqual(param.getType(), 'param')
Exemple #3
0
 def testCreationInOut(self):
     param = raw_doc.RawParam(self.tok, self.txt_name, self.txt_text,
                              self.tok_inout)
     self.assertEqual(param.name, self.txt_name)
     self.assertEqual(param.text, self.txt_text)
     self.assertEqual(param.inout, self.tok_inout)