| 72 | } |
| 73 | |
| 74 | static void |
| 75 | init_memory_context() |
| 76 | { |
| 77 | if (NULL == TopMemoryContext) |
| 78 | { |
| 79 | assert(NULL == testMemoryContext); |
| 80 | MemoryContextInit(); |
| 81 | |
| 82 | testMemoryContext = AllocSetContextCreate(TopMemoryContext, |
| 83 | "Test Context", |
| 84 | ALLOCSET_DEFAULT_MINSIZE, |
| 85 | ALLOCSET_DEFAULT_INITSIZE, |
| 86 | ALLOCSET_DEFAULT_MAXSIZE); |
| 87 | |
| 88 | MemoryContextSwitchTo(testMemoryContext); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | static void |
| 93 | destroy_memory_context() |
no test coverage detected