• Dylan Baker's avatar
    framework: replace TestResult dict with an object · b365367f
    Dylan Baker authored
    This is a very invasive patch, because it replaces one of our core
    data-structures with a completely different kind of object. This new
    object is not a dict-like object (it doesn't use obj[key] = value
    syntax), instead it's a standard object with the standard object
    attributes. So result['time'] becomes result.time.
    
    This approach has a couple of advantages. First, it allows us to use
    properties, which allows us to encapsulate a lot of distributed logic
    from the summary module in the results module, and in a way that is
    easier to test for correctness. The second advantage of that
    encapsulation is that correct behavior is used everywhere, instead of
    just in most places. Finally, it allows us to use the flyweight pattern
    on the results objects, limiting the amount of memory consumed.
    Signed-off-by: default avatarDylan Baker <dylanx.c.baker@intel.com>
    b365367f
Name
Last commit
Last update
cmake Loading commit data...
examples/glsl_parser_test Loading commit data...
framework Loading commit data...
generated_tests Loading commit data...
licences Loading commit data...
registry Loading commit data...
self-tests Loading commit data...
src Loading commit data...
templates Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
HACKING Loading commit data...
README Loading commit data...
RELEASE Loading commit data...
TODO Loading commit data...
piglit Loading commit data...
piglit-print-commands.py Loading commit data...
piglit-resume.py Loading commit data...
piglit-run.py Loading commit data...
piglit-summary-html.py Loading commit data...
piglit-summary.py Loading commit data...
piglit.conf.example Loading commit data...