# File lib/NativeFileType.rb, line 134 def self.compatability_score(file_system_image,filename,contents,file_type,aux_code) return non_matching_score unless (file_type_matches?(file_system_image,file_type)) load_address=self.load_address(contents) passed_tests=0 code_for_tests.each do |code_for_test| RipXploreLog.debug "test for #{self} : #{code_for_test}" result = eval code_for_test,binding RipXploreLog.debug "RESULT: #{result}" return non_matching_score unless (result) passed_tests+=1 end return matching_score+passed_tests end