mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Note where tests are
This commit is contained in:
@@ -173,6 +173,9 @@ module Linguist
|
|||||||
# - XCode project XML files
|
# - XCode project XML files
|
||||||
# - Minified JavaScript
|
# - Minified JavaScript
|
||||||
#
|
#
|
||||||
|
# Please add additional test coverage to
|
||||||
|
# `test/test_blob.rb#test_generated` if you make any changes.
|
||||||
|
#
|
||||||
# Return true or false
|
# Return true or false
|
||||||
def generated?
|
def generated?
|
||||||
if ['.xib', '.nib', '.pbxproj'].include?(extname)
|
if ['.xib', '.nib', '.pbxproj'].include?(extname)
|
||||||
@@ -239,6 +242,9 @@ module Linguist
|
|||||||
# - Langauges marked as not searchable
|
# - Langauges marked as not searchable
|
||||||
# - Generated source files
|
# - Generated source files
|
||||||
#
|
#
|
||||||
|
# Please add additional test coverage to
|
||||||
|
# `test/test_blob.rb#test_indexable` if you make any changes.
|
||||||
|
#
|
||||||
# Return true or false
|
# Return true or false
|
||||||
def indexable?
|
def indexable?
|
||||||
if binary?
|
if binary?
|
||||||
@@ -271,6 +277,9 @@ module Linguist
|
|||||||
|
|
||||||
# Internal: Guess language
|
# 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
|
# Returns a Language or nil
|
||||||
def guess_language
|
def guess_language
|
||||||
return if binary?
|
return if binary?
|
||||||
@@ -299,6 +308,9 @@ module Linguist
|
|||||||
#
|
#
|
||||||
# Delegates to "guess_EXTENSION_language".
|
# 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.
|
# Returns a Language or nil.
|
||||||
def disambiguate_extension_language
|
def disambiguate_extension_language
|
||||||
if Language.ambiguous?(extname)
|
if Language.ambiguous?(extname)
|
||||||
@@ -408,6 +420,9 @@ module Linguist
|
|||||||
# '#!/usr/bash/python2.4'
|
# '#!/usr/bash/python2.4'
|
||||||
# # => 'python'
|
# # => '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
|
# Returns a script name String or nil
|
||||||
def shebang_script
|
def shebang_script
|
||||||
# Fail fast if blob isn't viewable?
|
# Fail fast if blob isn't viewable?
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
# different alias. Avoid defining new exceptions.
|
# different alias. Avoid defining new exceptions.
|
||||||
#
|
#
|
||||||
# Any additions or modifications (even trivial) should have corresponding
|
# 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.
|
# Please keep this list alphabetized.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user