Definition at line 26 of file SqlLongStringTests.cs.
void Deveel.Data.Sql.Objects.SqlLongStringTests.Create_Unicode_Uncompressed |
( |
| ) |
|
|
inline |
Definition at line 64 of file SqlLongStringTests.cs.
66 var stringObj = SqlLongString.Unicode(obj);
67 Assert.IsNotNull(stringObj);
68 Assert.IsFalse(stringObj.IsNull);
ILargeObject CreateLargeObject(long size, bool compressed)
ILargeObject Deveel.Data.Sql.Objects.SqlLongStringTests.CreateLargeObject |
( |
long |
size, |
|
|
bool |
compressed |
|
) |
| |
|
inlineprivate |
Definition at line 31 of file SqlLongStringTests.cs.
ILargeObject CreateNewObject(long maxSize, bool compressed)
Creates a new large object returning a reference to it.
Definition at line 35 of file SqlLongStringTests.cs.
ILargeObject GetObject(ObjectId id)
Gets an object that was previously created for the given unique identifier.
void Deveel.Data.Sql.Objects.SqlLongStringTests.TestSetUp |
( |
| ) |
|
|
inline |
Definition at line 49 of file SqlLongStringTests.cs.
InMemoryStorageSystem storageSystem
IStore IStoreSystem. CreateStore(string name)
void Deveel.Data.Sql.Objects.SqlLongStringTests.TestTearDown |
( |
| ) |
|
|
inline |
Definition at line 57 of file SqlLongStringTests.cs.
InMemoryStorageSystem storageSystem
bool IStoreSystem. DeleteStore(IStore store)
Permanently deletes a store from the system - use with care!
void Deveel.Data.Sql.Objects.SqlLongStringTests.WriteAndRead_Unicode |
( |
| ) |
|
|
inline |
Definition at line 72 of file SqlLongStringTests.cs.
73 const string testLine =
"A simple test string that can span several characters, " +
74 "that is trying to be the longest possible, just to prove" +
75 "the capacity of a LONG VARCHAR to handle very long strings. " +
76 "Anyway it is virtually impossible to reach the maximum size " +
77 "of a long object, that is organized in 64k byte pages and " +
78 "spans within the local system without any constraint of size. " +
79 "For sake of memory anyway, the maximum size of the test object " +
80 "is set to just 2048 bytes.";
90 var stringObj = SqlLongString.Unicode(obj);
91 Assert.IsNotNull(stringObj);
92 Assert.IsFalse(stringObj.IsNull);
95 Assert.IsTrue(obj.IsComplete);
96 Assert.IsFalse(obj.IsCompressed);
98 stringObj = SqlLongString.Unicode(obj);
99 var reader = stringObj.GetInput(Encoding.Unicode);
100 Assert.IsNotNull(reader);
103 Assert.DoesNotThrow(() => line = reader.ReadLine());
104 Assert.IsNotNull(line);
105 Assert.IsNotEmpty(line);
107 Assert.AreEqual(testLine, line);
ILargeObject CreateLargeObject(long size, bool compressed)
void WriteToObject(ILargeObject obj, Encoding encoding, string text)
ILargeObject GetLargeObject(ObjectId id)
void Deveel.Data.Sql.Objects.SqlLongStringTests.WriteToObject |
( |
ILargeObject |
obj, |
|
|
Encoding |
encoding, |
|
|
string |
text |
|
) |
| |
|
inlineprivate |
Definition at line 39 of file SqlLongStringTests.cs.
41 using (var streamWriter =
new StreamWriter(stream, encoding)) {
42 streamWriter.Write(text);
ObjectStore Deveel.Data.Sql.Objects.SqlLongStringTests.objStore |
|
private |
InMemoryStore Deveel.Data.Sql.Objects.SqlLongStringTests.testStore |
|
private |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-nunit/Deveel.Data.Sql.Objects/SqlLongStringTests.cs