Note where tests are

This commit is contained in:
Joshua Peek
2011-07-06 10:18:01 -05:00
parent 44699ba9b9
commit 04179de2f6
2 changed files with 16 additions and 1 deletions

View File

@@ -173,6 +173,9 @@ module Linguist
# - XCode project XML files
# - Minified JavaScript
#
# Please add additional test coverage to
# `test/test_blob.rb#test_generated` if you make any changes.
#
# Return true or false
def generated?
if ['.xib', '.nib', '.pbxproj'].include?(extname)
@@ -239,6 +242,9 @@ module Linguist
# - Langauges marked as not searchable
# - Generated source files
#
# Please add additional test coverage to
# `test/test_blob.rb#test_indexable` if you make any changes.
#
# Return true or false
def indexable?
if binary?
@@ -271,6 +277,9 @@ module Linguist
# Internal: Guess language
#
# Please add additional test coverage to
# `test/test_blob.rb#test_language` if you make any changes.
#
# Returns a Language or nil
def guess_language
return if binary?
@@ -299,6 +308,9 @@ module Linguist
#
# Delegates to "guess_EXTENSION_language".
#
# Please add additional test coverage to
# `test/test_blob.rb#test_language` if you add another method.
#
# Returns a Language or nil.
def disambiguate_extension_language
if Language.ambiguous?(extname)
@@ -408,6 +420,9 @@ module Linguist
# '#!/usr/bash/python2.4'
# # => 'python'
#
# Please add additional test coverage to
# `test/test_blob.rb#test_shebang_script` if you make any changes.
#
# Returns a script name String or nil
def shebang_script
# Fail fast if blob isn't viewable?

View File

@@ -16,7 +16,7 @@
# different alias. Avoid defining new exceptions.
#
# Any additions or modifications (even trivial) should have corresponding
# test change in `test/test_language.rb`.
# test change in `test/test_blob.rb`.
#
# Please keep this list alphabetized.