| 17 | |
| 18 | |
| 19 | class BaseTestBaseComm: |
| 20 | # |
| 21 | def setUp(self): |
| 22 | self.comm = self.CommType(self.COMM_BASE) |
| 23 | |
| 24 | def testSubType(self): |
| 25 | self.assertNotIn( |
| 26 | type(self.comm), |
| 27 | [ |
| 28 | MPI.Comm, |
| 29 | MPI.Intracomm, |
| 30 | MPI.Cartcomm, |
| 31 | MPI.Graphcomm, |
| 32 | MPI.Distgraphcomm, |
| 33 | MPI.Intercomm, |
| 34 | ], |
| 35 | ) |
| 36 | self.assertIsInstance(self.comm, self.CommType) |
| 37 | |
| 38 | def testCloneFree(self): |
| 39 | if self.COMM_BASE != MPI.COMM_NULL: |
| 40 | comm = self.comm.Clone() |
| 41 | else: |
| 42 | comm = self.CommType() |
| 43 | self.assertIsInstance(comm, MPI.Comm) |
| 44 | self.assertIsInstance(comm, self.CommType) |
| 45 | comm.free() |
| 46 | |
| 47 | def tearDown(self): |
| 48 | self.comm.free() |
| 49 | |
| 50 | |
| 51 | # --- |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…