grass.pygrass.tests package

Submodules

grass.pygrass.tests.benchmark module

Created on Sat Jun 16 20:24:56 2012

@author: soeren

class grass.pygrass.tests.benchmark.OptionParser(**kwargs)[source]

Bases: optparse.OptionParser

check_values(values: Values, args: [string])[source]

-> (values : Values, args : [string])

Check that the supplied option values and leftover arguments are valid. Returns the option values and leftover arguments (possibly adjusted, possibly completely new – whatever you like). Default implementation just returns the passed-in values; subclasses may override as desired.

class grass.pygrass.tests.benchmark.OptionWithDefault(*opts, **attrs)[source]

Bases: optparse.Option

ATTRS = ['action', 'type', 'dest', 'default', 'nargs', 'const', 'choices', 'callback', 'callback_args', 'callback_kwargs', 'help', 'metavar', 'required']
grass.pygrass.tests.benchmark.get_testdict(testlist)[source]
grass.pygrass.tests.benchmark.get_testlist(loc)[source]
grass.pygrass.tests.benchmark.get_txt(results)[source]
grass.pygrass.tests.benchmark.main(testdict)[source]

Main function

grass.pygrass.tests.benchmark.mytimer(func, runs=1)[source]
grass.pygrass.tests.benchmark.print_test(testdict)[source]
grass.pygrass.tests.benchmark.run_benchmark(resolution_list, runs, testdict, profile)[source]
grass.pygrass.tests.benchmark.test__RasterRowIO_row_access__add()[source]
grass.pygrass.tests.benchmark.test__RasterRowIO_row_access__if()[source]
grass.pygrass.tests.benchmark.test__RasterRow_row_access__add()[source]
grass.pygrass.tests.benchmark.test__RasterRow_row_access__if()[source]
grass.pygrass.tests.benchmark.test__RasterRow_value_access__add()[source]
grass.pygrass.tests.benchmark.test__RasterRow_value_access__if()[source]
grass.pygrass.tests.benchmark.test__RasterSegment_row_access__add()[source]
grass.pygrass.tests.benchmark.test__RasterSegment_row_access__if()[source]
grass.pygrass.tests.benchmark.test__RasterSegment_value_access__add()[source]
grass.pygrass.tests.benchmark.test__RasterSegment_value_access__if()[source]
grass.pygrass.tests.benchmark.test__mapcalc__add()[source]
grass.pygrass.tests.benchmark.test__mapcalc__if()[source]

grass.pygrass.tests.set_mapset module

Created on Thu Aug 23 11:07:38 2012

@author: pietro

grass.pygrass.tests.set_mapset.main()[source]
grass.pygrass.tests.set_mapset.read_gisrc(gisrcpath)[source]