@@ -90,18 +90,18 @@ defmodule ExVCR.Task.Runner do
90
90
defp create_count_hash ( [ ] , acc ) , do: acc
91
91
defp create_count_hash ( [ { type , path } | tail ] , acc ) do
92
92
file = Path . basename ( path )
93
- counts = Dict . get ( acc , file , % ExVCR.Checker.Counts { } )
93
+ counts = Map . get ( acc , file , % ExVCR.Checker.Counts { } )
94
94
hash = case type do
95
- :cache -> Dict . put ( acc , file , % { counts | cache: counts . cache + 1 } )
96
- :server -> Dict . put ( acc , file , % { counts | server: counts . server + 1 } )
95
+ :cache -> Map . put ( acc , file , % { counts | cache: counts . cache + 1 } )
96
+ :server -> Map . put ( acc , file , % { counts | server: counts . server + 1 } )
97
97
end
98
98
create_count_hash ( tail , hash )
99
99
end
100
100
101
101
defp print_check_cassettes ( items , counts_hash ) do
102
102
printf ( @ check_header_format , [ "[File Name]" , "[Cassette Counts]" , "[Server Counts]" ] )
103
103
Enum . each ( items , fn ( { name , _date } ) ->
104
- counts = Dict . get ( counts_hash , name , % ExVCR.Checker.Counts { } )
104
+ counts = Map . get ( counts_hash , name , % ExVCR.Checker.Counts { } )
105
105
printf ( @ check_content_format , [ name , counts . cache , counts . server ] )
106
106
end )
107
107
end
0 commit comments