openModeller  Version 1.5.0
test_ruleset.cpp File Reference
#include <TestHarness.h>
#include <ruleset.hh>
#include <rules_base.hh>
Include dependency graph for test_ruleset.cpp:

Go to the source code of this file.

Classes

class  DummyRule
 

Functions

void testHelperAddRules (GarpRuleSet *ruleset, int from, int to)
 
 TEST (testHelperAddRules, Global)
 
 TEST (GarpRuleSet_Constructor, GarpRuleSet)
 
 TEST (GarpRuleSet_add, Garp)
 
 TEST (GarpRuleSet_trim, GarpRuleSet)
 
 TEST (GarpRuleSet_clear, GarpRuleSet)
 
 TEST (GarpRuleSet_filter, GarpRuleSet)
 
 TEST (GarpRuleSet_replace, GarpRuleSet)
 
 TEST (GarpRuleSet_performanceSummary, GarpRuleSet)
 

Detailed Description

Unit tests for ruleset.cpp

Author
Ricardo Scachetti Pereira (rpere.nosp@m.ira@.nosp@m.ku.ed.nosp@m.u)
Date
2004-04-07
Id:
test_ruleset.cpp 1026 2005-06-23 20:28:29Z kruland

LICENSE INFORMATION

Copyright(c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA. Copyright(c), CRIA - Centro de Referencia em Informacao Ambiental

http://www.nhm.ku.edu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:

http://www.gnu.org/copyleft/gpl.html

Definition in file test_ruleset.cpp.

Function Documentation

TEST ( testHelperAddRules  ,
Global   
)

Definition at line 99 of file test_ruleset.cpp.

References GarpRuleSet::get(), GarpRuleSet::numRules(), and testHelperAddRules().

Here is the call graph for this function:

TEST ( GarpRuleSet_Constructor  ,
GarpRuleSet   
)

Definition at line 112 of file test_ruleset.cpp.

References GarpRuleSet::numRules(), and GarpRuleSet::size().

Here is the call graph for this function:

TEST ( GarpRuleSet_add  ,
Garp   
)

Definition at line 120 of file test_ruleset.cpp.

References GarpRuleSet::add(), and GarpRuleSet::get().

Here is the call graph for this function:

TEST ( GarpRuleSet_trim  ,
GarpRuleSet   
)

Definition at line 145 of file test_ruleset.cpp.

References GarpRuleSet::get(), GarpRuleSet::numRules(), testHelperAddRules(), and GarpRuleSet::trim().

Here is the call graph for this function:

TEST ( GarpRuleSet_clear  ,
GarpRuleSet   
)

Definition at line 168 of file test_ruleset.cpp.

References GarpRuleSet::clear(), GarpRuleSet::get(), GarpRuleSet::numRules(), and testHelperAddRules().

Here is the call graph for this function:

TEST ( GarpRuleSet_filter  ,
GarpRuleSet   
)

Definition at line 190 of file test_ruleset.cpp.

References GarpRuleSet::filter(), GarpRuleSet::get(), GarpRuleSet::numRules(), PerfSig, DummyRule::setPerformance(), and testHelperAddRules().

Here is the call graph for this function:

TEST ( GarpRuleSet_replace  ,
GarpRuleSet   
)

Definition at line 224 of file test_ruleset.cpp.

References GarpRuleSet::get(), GarpRuleSet::replace(), and testHelperAddRules().

Here is the call graph for this function:

TEST ( GarpRuleSet_performanceSummary  ,
GarpRuleSet   
)

Definition at line 250 of file test_ruleset.cpp.

References GarpRuleSet::get(), GarpRuleSet::performanceSummary(), PerfSig, DummyRule::setPerformance(), and testHelperAddRules().

Here is the call graph for this function:

void testHelperAddRules ( GarpRuleSet ruleset,
int  from,
int  to 
)

Definition at line 86 of file test_ruleset.cpp.

References GarpRuleSet::add().

Referenced by TEST().

Here is the call graph for this function: