Skip to content

Commit

Permalink
Remove hack modes from Hack tests
Browse files Browse the repository at this point in the history
Summary:
```
fbgr -sl '^<\?hh ?// ?(strict|partial|decl)$' | grep -P '\.(php|hhi|exp)$' | grep -P '^hphp/(hsl/tests|hack/test)/' | xargs sed -i -E 's#<\?hh ?//.*#<?hh#' # need to include .exp for hackfmt tests
hg revert hphp/hack/test/cst_search/
hg revert hphp/hack/test/error_formatting_highlighted/
hg revert hphp/hack/test/full_fidelity/cases/
hg revert hphp/hack/test/hackfmt/range_tests/
hg revert hphp/hack/test/facebook/lint/graph/generated_graph_endpoints.php
hg revert hphp/hack/test/facebook/lint/graph/partially_generated_graph_endpoints.php
```

The directories I reverted need special handling, e.g. signatures (wtf) and updates to positional changes

https://fb.alpha.workplace.com/groups/hacklang.eng/permalink/7234143656634187/

Reviewed By: vsiles

Differential Revision: D50089378

fbshipit-source-id: 48131fb6d329e5fb9f27810de022a3d119177836
  • Loading branch information
viratyosin authored and facebook-github-bot committed Oct 11, 2023
1 parent f14b363 commit d9646a6
Show file tree
Hide file tree
Showing 56 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion tests/HackLibTestForwardOnlyIterator.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/HackLibTestStringable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/HackLibTestTraversables.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/RefTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/async/ConditionTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/async/PollTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/async/SemaphoreTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/c/CIntrospectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/c/COrderTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh

/*
* Copyright (c) 2004-present, Facebook, Inc.
Expand Down
2 changes: 1 addition & 1 deletion tests/c/CReduceTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/c/CSelectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/dict/DictAsyncTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/dict/DictCombineTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/dict/DictDivideTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/dict/DictIntrospectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/dict/DictOrderTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/dict/DictSelectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/dict/DictTransformTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/file/FileTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/file/RelativePathTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/io/BufferedReaderTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/io/MemoryHandleTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/io/PipeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/keyset/KeysetAsyncTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/keyset/KeysetCombineTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/keyset/KeysetDivideTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/keyset/KeysetIntrospectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/keyset/KeysetOrderTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/keyset/KeysetSelectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/keyset/KeysetTransformTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/locale/LocaleTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/math/MathCompareTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/math/MathComputeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/math/MathConstantsTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/math/MathContainersTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/os/MkdtempTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/os/SpawnTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/random/PseudoRandomTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/random/RandomTestTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/random/SecureRandomTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/regex/RegexTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/str/StrCombineTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/str/StrDivideTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/str/StrFormatTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/str/StrIntrospectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/str/StrLocaleTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/str/StrSelectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/str/StrTransformTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/tcp/HSLTCPTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/unix/HSLUnixSocketTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/vec/VecAsyncTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/vec/VecCombineTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/vec/VecDivideTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/vec/VecOrderTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/vec/VecSelectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/vec/VecTransformTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
Expand Down

0 comments on commit d9646a6

Please sign in to comment.