diff options
author | Tristan Marion <trismarion@gmail.com> | 2018-06-22 15:30:35 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-22 15:30:35 +0200 |
commit | 3b595253a2e9f8badc416f85d0b09bf48f344634 (patch) | |
tree | 85939e43b504cf0ff78f69a1912209e90b67ffe5 /src/file_util_test.cc | |
parent | 86354a29a40fb97e334f951428239ab8e171e2dd (diff) |
Move `deno2` folder to `src` (#277)
Diffstat (limited to 'src/file_util_test.cc')
-rw-r--r-- | src/file_util_test.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/file_util_test.cc b/src/file_util_test.cc new file mode 100644 index 000000000..3b1c3e239 --- /dev/null +++ b/src/file_util_test.cc @@ -0,0 +1,13 @@ +// Copyright 2018 Ryan Dahl <ry@tinyclouds.org> +// All rights reserved. MIT License. +#include "testing/gtest/include/gtest/gtest.h" + +#include "file_util.h" + +TEST(FileUtilTest, ReadFileToStringFileNotExist) { + std::string output; + EXPECT_FALSE(deno::ReadFileToString("/should_error_out.txt", &output)); +} + +// TODO(ry) success unit test. Needs a tempfile or fixture. +// TEST(FileUtilTest, ReadFileToStringSuccess) { } |