added sample files to give coverage tool something to chew on

This commit is contained in:
jfwood 2013-03-01 20:29:35 -08:00
parent fb13f06fb3
commit 81d7598ca4
2 changed files with 23 additions and 0 deletions

View File

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
"""
Sample Python file, here to test out code coverage in Jenkins.
~~~~~~~~~~~~
DO NOT USE THIS IN PRODUCTION. IT IS NOT SECURE IN ANY WAY.
YOU HAVE BEEN WARNED.
:copyright: (c) 2013 by Jarret Raim
:license: Apache 2.0, see LICENSE for details
"""
def a_sample_method_here():
foo = "bar"
i = 1
if ("bar" == foo):
print "saw bar"
i += 2
else:
print "not bar"
i += 4
print "total",i
a_sample_method_here() # Do something coverage can chew on.