|  |  | @ -14,13 +14,15 @@ import openpilot.selfdrive.test.process_replay.process_replay as pr | 
			
		
	
		
		
			
				
					
					|  |  |  | # that openpilot makes causing error with NaN, inf, int size, array indexing ... |  |  |  | # that openpilot makes causing error with NaN, inf, int size, array indexing ... | 
			
		
	
		
		
			
				
					
					|  |  |  | # TODO: Make each one testable |  |  |  | # TODO: Make each one testable | 
			
		
	
		
		
			
				
					
					|  |  |  | NOT_TESTED = ['controlsd', 'plannerd', 'calibrationd', 'dmonitoringd', 'paramsd', 'dmonitoringmodeld', 'modeld'] |  |  |  | NOT_TESTED = ['controlsd', 'plannerd', 'calibrationd', 'dmonitoringd', 'paramsd', 'dmonitoringmodeld', 'modeld'] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | TEST_CASES = [(cfg.proc_name, copy.deepcopy(cfg)) for cfg in pr.CONFIGS if cfg.proc_name not in NOT_TESTED] |  |  |  | TEST_CASES = [(cfg.proc_name, copy.deepcopy(cfg)) for cfg in pr.CONFIGS if cfg.proc_name not in NOT_TESTED] | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | class TestFuzzProcesses(unittest.TestCase): |  |  |  | class TestFuzzProcesses(unittest.TestCase): | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   # TODO: make this faster and increase examples | 
			
		
	
		
		
			
				
					
					|  |  |  |   @parameterized.expand(TEST_CASES) |  |  |  |   @parameterized.expand(TEST_CASES) | 
			
		
	
		
		
			
				
					
					|  |  |  |   @given(st.data()) |  |  |  |   @given(st.data()) | 
			
		
	
		
		
			
				
					
					|  |  |  |   @settings(phases=[Phase.generate, Phase.target], max_examples=50, deadline=1000, suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large]) |  |  |  |   @settings(phases=[Phase.generate, Phase.target], max_examples=10, deadline=1000, suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large]) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   def test_fuzz_process(self, proc_name, cfg, data): |  |  |  |   def test_fuzz_process(self, proc_name, cfg, data): | 
			
		
	
		
		
			
				
					
					|  |  |  |     msgs = FuzzyGenerator.get_random_event_msg(data.draw, events=cfg.pubs, real_floats=True) |  |  |  |     msgs = FuzzyGenerator.get_random_event_msg(data.draw, events=cfg.pubs, real_floats=True) | 
			
		
	
		
		
			
				
					
					|  |  |  |     lr = [log.Event.new_message(**m).as_reader() for m in msgs] |  |  |  |     lr = [log.Event.new_message(**m).as_reader() for m in msgs] | 
			
		
	
	
		
		
			
				
					|  |  | 
 |