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

Method funcIsValidFormatString

lefsebiom/ValidateData.py:254–271  ·  view source on GitHub ↗

Validates a parameter as a valid format string. :param parameterValue: Value to be evaluated. :type Unknown :return Boolean: True indicates the parameter is a valid value. :type Boolean

(parameterValue)

Source from the content-addressed store, hash-verified

252 #Tested 6
253 @staticmethod
254 def funcIsValidFormatString(parameterValue):
255 """
256 Validates a parameter as a valid format string.
257
258 :param parameterValue: Value to be evaluated.
259 :type Unknown
260 :return Boolean: True indicates the parameter is a valid value.
261 :type Boolean
262 """
263
264 lettersValid = False
265 if ValidateData.funcIsValidString(parameterValue):
266 validChars = "BbcdfHhIiLlPpsx0123456789"
267 for letter in parameterValue:
268 lettersValid = letter in validChars
269 if(not lettersValid):
270 break
271 return lettersValid
272
273 #Tested 5
274 @staticmethod

Callers

nothing calls this directly

Calls 1

funcIsValidStringMethod · 0.80

Tested by

no test coverage detected