SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST() [10/59]

SpicesTest::TEST ( FileLibraryTest ,
Close  )

Testing Spices::FileLibrary::Close.

Definition at line 47 of file FileLibrary_test.h.

47 {
48
50
51 Spices::FileHandle handle{};
52 EXPECT_EQ(Spices::FileLibrary::FileLibrary_Open("premake5.lua", Spices::FileModes::FILE_MODE_READ, false, &handle), true);
53
54 EXPECT_EQ(handle.is_valid, true);
55 EXPECT_NE(handle.handle, nullptr);
56
58 }
#define SPICESTEST_PROFILE_FUNCTION()
static bool FileLibrary_Open(const char *path, FileModes mode, bool binary, FileHandle *out_handle)
Open the file using given string.
static void FileLibrary_Close(FileHandle *handle)
Close the file by the file handle.
@ FILE_MODE_READ
model : read
Definition FileLibrary.h:37
This Struct is FILE* handle pointer Wrapper.
Definition FileLibrary.h:15

References Spices::FILE_MODE_READ, Spices::FileLibrary::FileLibrary_Close(), Spices::FileLibrary::FileLibrary_Open(), Spices::FileHandle::handle, and Spices::FileHandle::is_valid.