From 6b6fac209c97d5961ea875d4b22f66fa97272876 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 26 Jul 2018 23:21:10 -0400 Subject: Optimize compile time by using asm. Switches to using asm incbin to embed the V8 snapshot instead of outputing C code and then compiling it. Compile time for from_snapshot.o goes from 44s to 1s. --- src/file_util_test.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/file_util_test.cc') diff --git a/src/file_util_test.cc b/src/file_util_test.cc index 6d4acd1d8..3f01c8115 100644 --- a/src/file_util_test.cc +++ b/src/file_util_test.cc @@ -17,12 +17,5 @@ TEST(FileUtilTest, Basename) { EXPECT_EQ("foo.txt", deno::Basename("C:\\home\\ryan\\foo.txt")); } -TEST(FileUtilTest, BinaryContentAsC) { - auto c_code = deno::BinaryContentAsC("aaa", std::string("bbb")); - EXPECT_TRUE(c_code.find("static const char aaa_data[]") != std::string::npos); - EXPECT_TRUE(c_code.find("static const int aaa_size = 3;") != - std::string::npos); -} - // TODO(ry) success unit test. Needs a tempfile or fixture. // TEST(FileUtilTest, ReadFileToStringSuccess) { } -- cgit v1.2.3