Skip to content

Commit

Permalink
Remove excess functionality.
Browse files Browse the repository at this point in the history
Higher level functionality should be reserved for separate a package.
  • Loading branch information
ExternalReality committed Oct 20, 2011
1 parent e3227e7 commit df0dea7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 68 deletions.
47 changes: 0 additions & 47 deletions src/Database/SednaDB/Sedna.hs

This file was deleted.

3 changes: 0 additions & 3 deletions src/Database/SednaDB/SednaBindings.hs
Expand Up @@ -20,10 +20,7 @@ module Database.SednaDB.SednaBindings
, sednaShowTime
, sednaTransactionStatus
, sednaLoadFile

, sednaLoadData


) where

--------------------------------------------------------------------------------
Expand Down
35 changes: 17 additions & 18 deletions test/suite/Integration/SednaBindingTests.hs
Expand Up @@ -112,21 +112,19 @@ testGetConnectionAttr =
result)
"Testing inspection of connection attributes"

-- --------------------------------------------------------------------------------
---------------------------------------------------------------------------------
testLoadData :: Test
testLoadData =
testCaseFMsg "Test loading of XML Data" $ sednaDBTest
connectionTest (conn -> do
sednaBegin conn
sednaLoadData conn
(pack "<?xml version=\"1.0\" standalone=\"yes\"?>")
"testdoc"
"testcollection"
sednaEndLoadData conn)
testLoadData =
connectionTest (\conn -> do
sednaBegin conn
sednaLoadData conn
(pack "<?xml version=\"1.0\" standalone=\"yes\"?>")
"testdoc"
"testcollection"
sednaEndLoadData conn
sednaCommit conn)
"Testing proper loading of chunk data"



-- --------------------------------------------------------------------------------
-- -- testLoadFile = sednaDBTest $
-- -- (\(_,conn) -> do
Expand Down Expand Up @@ -202,15 +200,16 @@ controlTests = testGroup "Control Tests" [ testGetConnectionAttr
]

-- --------------------------------------------------------------------------------
-- transactionTests :: Test
-- transactionTests = testGroup "Transaction Tests" [ testBeginTransaction
-- , testLoadData
-- , testExecuteQuery
-- , testLoadRetrieveData
-- ]
transactionTests :: Test
transactionTests = testGroup "Transaction Tests" [ testBeginTransaction
, testLoadData
--, testExecuteQuery
--, testLoadRetrieveData
]

--------------------------------------------------------------------------------
integrationTests :: Test
integrationTests = testGroup "Sedna C API Integration Tests" [ connectionTests
, controlTests
, transactionTests
]

0 comments on commit df0dea7

Please sign in to comment.