anvil-verifier/anvil

Test coverage form

ZichengMa opened this issue · 4 comments

The form is currently counted manually. Some auto scripts will be updated later.

API files Total Number of functions Number of covered functions What’s Left
Affinity 2 2  
API_method 6 0 key,fmt
Api resource 3 3  
Cluster Role Binding 10 10  
Cluster Role 9 9  
Config Map 11 11  
Container 73 73  
Daemon Set 22 22  
Dynamic 5 5  
Error 2 0 fmt
Label Selector 5 5  
Object Meta 19 19  
Owner Reference 2 2  
PVC 17 17  
Pod Template Spec 6 6  
Pod 31 31  
Resource Requirement 6 6  
Role Binding 24 24  
Role 16 16  
Secret 11 11  
Servicee Account 9 9  
Service 29 29  
Sts 36 36  
Toleartion 2 2  
Volume 73 73  
Total 428 420  

Great!

@ZichengMa why in some of the API files (e.g., Affinity), Total > Covered, but there is nothing left? (the left column is empty)?

@ZichengMa For all the marshal/unmarshal functions, you can test them by checking

assert_eq!(o, T::unmarshal(o.marshal()).unwrap());

@ZichengMa why in some of the API files (e.g., Affinity), Total > Covered, but there is nothing left? (the left column is empty)?

Oh! That's because I didn't start to test those APIs. I will update the form later.