From 81d7598ca48c7c4073b8acf60dd948fca8f99ea5 Mon Sep 17 00:00:00 2001 From: jfwood Date: Fri, 1 Mar 2013 20:29:35 -0800 Subject: [PATCH] added sample files to give coverage tool something to chew on --- barbican/samples/__init__.py | 0 barbican/samples/sample.py | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 barbican/samples/__init__.py create mode 100644 barbican/samples/sample.py diff --git a/barbican/samples/__init__.py b/barbican/samples/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/barbican/samples/sample.py b/barbican/samples/sample.py new file mode 100644 index 000000000..75a705c1d --- /dev/null +++ b/barbican/samples/sample.py @@ -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.