added sample files to give coverage tool something to chew on
This commit is contained in:
parent
fb13f06fb3
commit
81d7598ca4
0
barbican/samples/__init__.py
Normal file
0
barbican/samples/__init__.py
Normal file
23
barbican/samples/sample.py
Normal file
23
barbican/samples/sample.py
Normal 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.
|
Loading…
x
Reference in New Issue
Block a user