[Liblas-commits] libpc: start of reader/writer stage tests
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Feb 23 20:22:41 EST 2011
details: http://hg.liblas.orglibpc/rev/5b9465f9d5ad
changeset: 81:5b9465f9d5ad
user: Michael P. Gerlek <mpg at flaxen.com>
date: Wed Feb 23 17:22:36 2011 -0800
description:
start of reader/writer stage tests
diffstat:
include/libpc/FauxWriter.hpp | 10 +++++++++-
test/unit/CMakeLists.txt | 3 +++
test/unit/CropFilterTest.cpp | 17 +++++++++++++++++
test/unit/FauxReaderTest.cpp | 17 +++++++++++++++++
test/unit/FauxWriterTest.cpp | 17 +++++++++++++++++
5 files changed, 63 insertions(+), 1 deletions(-)
diffs (104 lines):
diff -r 429bb8a2745c -r 5b9465f9d5ad include/libpc/FauxWriter.hpp
--- a/include/libpc/FauxWriter.hpp Wed Feb 23 17:16:53 2011 -0800
+++ b/include/libpc/FauxWriter.hpp Wed Feb 23 17:22:36 2011 -0800
@@ -44,7 +44,7 @@
//
// The FauxWriter doesn't actually write to disk -- instead, it just
-// dumps to stdout some summary stats about the data it is given.
+// record some summary stats about the data it is given.
//
// This writer knows only about three dimensions: X,Y,Z (as floats).
//
@@ -53,6 +53,14 @@
public:
FauxWriter(Stage& prevStage);
+ // retrieve the summary info
+ float getMinX() const { return m_minimumX; }
+ float getMinY() const { return m_minimumY; }
+ float getMinZ() const { return m_minimumZ; }
+ float getMaxX() const { return m_maximumX; }
+ float getMaxY() const { return m_maximumY; }
+ float getMaxZ() const { return m_maximumZ; }
+
private:
float m_minimumX;
float m_minimumY;
diff -r 429bb8a2745c -r 5b9465f9d5ad test/unit/CMakeLists.txt
--- a/test/unit/CMakeLists.txt Wed Feb 23 17:16:53 2011 -0800
+++ b/test/unit/CMakeLists.txt Wed Feb 23 17:22:36 2011 -0800
@@ -10,7 +10,10 @@
SET(LIBPC_UNIT_TEST_SRC
BoundsTest.cpp
ColorTest.cpp
+ CropFilterTest.cpp
DimensionTest.cpp
+ FauxReaderTest.cpp
+ FauxWriterTest.cpp
PointDataTest.cpp
RangeTest.cpp
SchemaTest.cpp
diff -r 429bb8a2745c -r 5b9465f9d5ad test/unit/CropFilterTest.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/unit/CropFilterTest.cpp Wed Feb 23 17:22:36 2011 -0800
@@ -0,0 +1,17 @@
+#define BOOST_TEST_DYN_LINK
+
+#include <boost/test/unit_test.hpp>
+#include <boost/cstdint.hpp>
+
+#include "libpc/CropFilter.hpp"
+
+using namespace libpc;
+
+BOOST_AUTO_TEST_SUITE(CropFilterTest)
+
+BOOST_AUTO_TEST_CASE(test_ctor)
+{
+ return;
+}
+
+BOOST_AUTO_TEST_SUITE_END()
diff -r 429bb8a2745c -r 5b9465f9d5ad test/unit/FauxReaderTest.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/unit/FauxReaderTest.cpp Wed Feb 23 17:22:36 2011 -0800
@@ -0,0 +1,17 @@
+#define BOOST_TEST_DYN_LINK
+
+#include <boost/test/unit_test.hpp>
+#include <boost/cstdint.hpp>
+
+#include "libpc/FauxWriter.hpp"
+
+using namespace libpc;
+
+BOOST_AUTO_TEST_SUITE(FauxReaderTest)
+
+BOOST_AUTO_TEST_CASE(test_ctor)
+{
+ return;
+}
+
+BOOST_AUTO_TEST_SUITE_END()
diff -r 429bb8a2745c -r 5b9465f9d5ad test/unit/FauxWriterTest.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/unit/FauxWriterTest.cpp Wed Feb 23 17:22:36 2011 -0800
@@ -0,0 +1,17 @@
+#define BOOST_TEST_DYN_LINK
+
+#include <boost/test/unit_test.hpp>
+#include <boost/cstdint.hpp>
+
+#include "libpc/FauxWriter.hpp"
+
+using namespace libpc;
+
+BOOST_AUTO_TEST_SUITE(FauxWriterTest)
+
+BOOST_AUTO_TEST_CASE(test_ctor)
+{
+ return;
+}
+
+BOOST_AUTO_TEST_SUITE_END()
More information about the Liblas-commits
mailing list