summaryrefslogtreecommitdiff
path: root/src/file_util_test.cc
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2018-08-19 16:44:10 +0900
committerRyan Dahl <ry@tinyclouds.org>2018-08-19 11:27:47 -0400
commitaaabc853e84a03f72208c0e80634bd986c3ca4e2 (patch)
tree24cb4daf07c7b52b9260e041289ab2e79f25f5a8 /src/file_util_test.cc
parent146bc93b81ef1775a3a22784c74cbf0c8bbd1c9e (diff)
chore: move libdeno files to //libdeno/
Diffstat (limited to 'src/file_util_test.cc')
-rw-r--r--src/file_util_test.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/file_util_test.cc b/src/file_util_test.cc
deleted file mode 100644
index 3f01c8115..000000000
--- a/src/file_util_test.cc
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright 2018 the Deno authors. 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));
-}
-
-TEST(FileUtilTest, Basename) {
- EXPECT_EQ("foo.txt", deno::Basename("foo.txt"));
- EXPECT_EQ("foo.txt", deno::Basename("/foo.txt"));
- EXPECT_EQ("", deno::Basename("/"));
- EXPECT_EQ("foo.txt", deno::Basename(".\\foo.txt"));
- EXPECT_EQ("foo.txt", deno::Basename("/home/ryan/foo.txt"));
- EXPECT_EQ("foo.txt", deno::Basename("C:\\home\\ryan\\foo.txt"));
-}
-
-// TODO(ry) success unit test. Needs a tempfile or fixture.
-// TEST(FileUtilTest, ReadFileToStringSuccess) { }