(Wangle) Clean up tests
authorHannes Roth <hannesr@fb.com>
Fri, 5 Jun 2015 15:50:18 +0000 (08:50 -0700)
committerSara Golemon <sgolemon@fb.com>
Tue, 9 Jun 2015 20:19:18 +0000 (13:19 -0700)
commit5180b66230ee290a22bdba66f81e9f33e0216dd9
tree68057ff7cbc77b2880389fdc5efac953d0a39ded
parent66476fc9a6c96ff6d7848e5bd20fa0ee2f2dc089
(Wangle) Clean up tests

Summary:
This always bothered me. Now:

1) Separate tests for each feature
2) `XTest.cpp` contains `TEST(X, lowerCaseCamelCase)`

Also cleaned up some header files and using statements.

Shamelessly trying to increase the number of lines that blame to me.

Test Plan:
Run all the tests.

`git grep 'TEST' -- 'folly/futures/test/*Test.cpp' | cut -d ',' -f 1 | cut -d '/' -f 4 | sort -u`

`diff <(git ls-files -- 'folly/futures/test/*Test.cpp' | cut -d '/' -f 4 | sort) <(git grep 'Test.cpp' -- folly/futures/TARGETS | cut -d '/' -f 4 | cut -d "'" -f 1 | sort)`

Reviewed By: jsedgwick@fb.com

Subscribers: trunkagent, folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2127359

Tasks: 6019442

Signature: t1:2127359:1433459532:54a91ae83d7fb2d0b3f3769f673fefea20f35435
37 files changed:
folly/futures/test/Benchmark.cpp
folly/futures/test/ClientCompile.cpp [deleted file]
folly/futures/test/CollectTest.cpp [new file with mode: 0644]
folly/futures/test/ContextTest.cpp [new file with mode: 0644]
folly/futures/test/CoreTest.cpp [new file with mode: 0644]
folly/futures/test/EnsureTest.cpp [new file with mode: 0644]
folly/futures/test/ExecutorTest.cpp
folly/futures/test/FSM.cpp [deleted file]
folly/futures/test/FSMTest.cpp [new file with mode: 0644]
folly/futures/test/FilterTest.cpp [new file with mode: 0644]
folly/futures/test/FutureTest.cpp
folly/futures/test/HeaderCompileTest.cpp [new file with mode: 0644]
folly/futures/test/InterruptTest.cpp [new file with mode: 0644]
folly/futures/test/Interrupts.cpp [deleted file]
folly/futures/test/MapTest.cpp [new file with mode: 0644]
folly/futures/test/PollTest.cpp [new file with mode: 0644]
folly/futures/test/PromiseTest.cpp [new file with mode: 0644]
folly/futures/test/ReduceTest.cpp [new file with mode: 0644]
folly/futures/test/SharedPromiseTest.cpp
folly/futures/test/SugarTest.cpp [deleted file]
folly/futures/test/ThenCompileTest.cpp [new file with mode: 0644]
folly/futures/test/ThenCompileTest.h [new file with mode: 0644]
folly/futures/test/ThenTest.cpp
folly/futures/test/Thens.cpp [deleted file]
folly/futures/test/Thens.h [deleted file]
folly/futures/test/TimekeeperTest.cpp
folly/futures/test/Try.cpp [deleted file]
folly/futures/test/TryTest.cpp [new file with mode: 0644]
folly/futures/test/UnitTest.cpp
folly/futures/test/UnwrapTest.cpp [new file with mode: 0644]
folly/futures/test/ViaTest.cpp
folly/futures/test/WaitTest.cpp [new file with mode: 0644]
folly/futures/test/WillEqualTest.cpp [new file with mode: 0644]
folly/futures/test/WindowTest.cpp [new file with mode: 0644]
folly/futures/test/main.cpp [deleted file]
folly/futures/test/then_compile_test.rb [new file with mode: 0755]
folly/futures/test/thens.rb [deleted file]