Lucene++ - a full-featured, c++ search engine
API Documentation


TestPoint.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef TESTPOINT_H
8 #define TESTPOINT_H
9 
10 #include "Lucene.h"
11 
12 namespace Lucene {
13 
15 class TestPoint {
16 public:
17  virtual ~TestPoint();
18 
19 protected:
20  static MapStringInt testMethods;
21  static bool enable;
22 
23 public:
24  static void enableTestPoints();
25  static void clear();
26  static void setTestPoint(const String& object, const String& method, bool point);
27  static bool getTestPoint(const String& object, const String& method);
28  static bool getTestPoint(const String& method);
29 };
30 
31 class TestScope {
32 public:
33  TestScope(const String& object, const String& method);
34  virtual ~TestScope();
35 
36 protected:
37  String object;
38  String method;
39 };
40 
41 }
42 
43 #endif
Lucene::TestScope::TestScope
TestScope(const String &object, const String &method)
Lucene::TestScope::method
String method
Definition: TestPoint.h:38
Lucene::TestPoint::setTestPoint
static void setTestPoint(const String &object, const String &method, bool point)
Lucene::TestPoint
Used for unit testing as a substitute for stack trace.
Definition: TestPoint.h:15
Lucene::TestPoint::enable
static bool enable
Definition: TestPoint.h:21
Lucene::TestPoint::testMethods
static MapStringInt testMethods
Definition: TestPoint.h:20
Lucene::TestPoint::getTestPoint
static bool getTestPoint(const String &method)
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::TestPoint::enableTestPoints
static void enableTestPoints()
Lucene::TestPoint::~TestPoint
virtual ~TestPoint()
Lucene::TestPoint::clear
static void clear()
Lucene::TestScope
Definition: TestPoint.h:31
Lucene::TestPoint::getTestPoint
static bool getTestPoint(const String &object, const String &method)
Lucene::TestScope::~TestScope
virtual ~TestScope()
Lucene::TestScope::object
String object
Definition: TestPoint.h:37

clucene.sourceforge.net