Lines Matching full:cache
182 cache = CMakeCache.from_file('dummy/path/CMakeCache.txt')
184 assert cache.cache_file == 'dummy/path/CMakeCache.txt'
193 item = cache._entries.popitem()
204 cache = CMakeCache.from_file('dummy/path/CMakeCache.txt')
206 good_val = cache.get('DUMMY_NAME')
210 bad_val = cache.get('ANOTHER_NAME')
214 bad_val = cache.get('ANOTHER_NAME', default='No such value')
237 cache = CMakeCache.from_file('dummy/path/CMakeCache.txt')
242 res = cache.get_list('DUMMY_NAME') if \
243 correct_get else cache.get_list('ANOTHER_NAME')
253 cache = CMakeCache.from_file('dummy/path/CMakeCache.txt')
255 assert len(list(cache.__iter__())) == 1
257 cache.__setitem__(
262 assert cache.__contains__('ANOTHER_NAME')
263 assert cache.__getitem__('ANOTHER_NAME') == 'another value'
265 cache.__delitem__('ANOTHER_NAME')
267 assert not cache.__contains__('ANOTHER_NAME')
269 assert len(list(cache.__iter__())) == 1
272 cache.__setitem__('WRONG_TYPE', 'Yet Another Dummy Value')