mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
97923e3d26
Starts a unit test for it, and adds to mock_runtime_test.
13 lines
418 B
C++
13 lines
418 B
C++
// 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) { }
|