MCPcopy Create free account
hub / github.com/SegataLab/lefse / funcIsValidInteger

Method funcIsValidInteger

lefsebiom/ValidateData.py:101–119  ·  view source on GitHub ↗

Validates a parameter as an integer. :param parameterValue: Value to be evaluated. :type Unknown :return Boolean: True indicates the parameter is an integer. :type Boolean

(parameterValue)

Source from the content-addressed store, hash-verified

99 #Tested 5
100 @staticmethod
101 def funcIsValidInteger(parameterValue):
102 """
103 Validates a parameter as an integer.
104
105 :param parameterValue: Value to be evaluated.
106 :type Unknown
107 :return Boolean: True indicates the parameter is an integer.
108 :type Boolean
109 """
110
111 #Check to make sure it is not null
112 if (parameterValue == None):
113 return False
114
115 #Check to make sure it is an integer
116 if not type(parameterValue) is IntType:
117 return False
118
119 return True
120
121 #Tested 5
122 @staticmethod

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected