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

Method funcIsValidStringType

lefsebiom/ValidateData.py:171–189  ·  view source on GitHub ↗

Validates a parameter as a string. This allows the string to be blank or empty. :param parameterValue: Value to be evaluated. :type Unknown :return Boolean: True indicates the parameter is a string type. :type Boolean

(parameterValue)

Source from the content-addressed store, hash-verified

169 #Tested 5
170 @staticmethod
171 def funcIsValidStringType(parameterValue):
172 """
173 Validates a parameter as a string. This allows the string to be blank or empty.
174
175 :param parameterValue: Value to be evaluated.
176 :type Unknown
177 :return Boolean: True indicates the parameter is a string type.
178 :type Boolean
179 """
180
181 #Check to make sure it is not null
182 if parameterValue == None:
183 return False
184
185 #Check to make sure it is a string
186 if not type(parameterValue) is StringType:
187 return False
188
189 return True
190
191 #Tested 5
192 @staticmethod

Callers 4

funcIsValidStringMethod · 0.80
funcIsValidStringIntMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected