s/sfc/gsc/g
'
This commit is contained in:
+13
-13
@@ -32,7 +32,7 @@ tokenizers_agree(Relpath) ->
|
||||
% extracting data to be tested
|
||||
% i hate this so much but lazy and this is test code so who really cares.
|
||||
SoTokens = so_tokens(FilePath),
|
||||
SfTokens = gsc:gso_tokens_from_file(FilePath),
|
||||
SfTokens = sfc:gso_tokens_from_file(FilePath),
|
||||
case {SoTokens, SfTokens} of
|
||||
{{ok, So}, {ok, Sf}} -> So =:= Sf;
|
||||
{{error, _}, {error, _}} -> true;
|
||||
@@ -82,7 +82,7 @@ load_dep(D) ->
|
||||
Result :: any().
|
||||
|
||||
% @doc
|
||||
% run Fun(), delete gsc/test/*.beam afterward even if
|
||||
% run Fun(), delete sfc/test/*.beam afterward even if
|
||||
% Fun() errors
|
||||
% @end
|
||||
clean_after(Fun) ->
|
||||
@@ -156,7 +156,7 @@ rmm(Mod) ->
|
||||
|
||||
find_test_by_name(Name) ->
|
||||
C1 = list_to_atom(Name),
|
||||
C2 = list_to_atom("gsc_test_" ++ Name),
|
||||
C2 = list_to_atom("sfc_test_" ++ Name),
|
||||
{Gd, Bd} = runnable_test_mods(),
|
||||
C1Gd = lists:member(C1, Gd),
|
||||
C2Gd = lists:member(C2, Gd),
|
||||
@@ -185,7 +185,7 @@ rtns(Acc, [TestMod | Rest]) ->
|
||||
rtns([{TestName, TestMod} | Acc], Rest).
|
||||
|
||||
test_mod_name(TestModAtom) ->
|
||||
"gsc_test_" ++ Name = atom_to_list(TestModAtom),
|
||||
"sfc_test_" ++ Name = atom_to_list(TestModAtom),
|
||||
Name.
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ runnable_test_mods() ->
|
||||
|
||||
is_runnable(ModAtom) ->
|
||||
case atom_to_list(ModAtom) of
|
||||
"gsc_test_" ++ _ -> true;
|
||||
"sfc_test_" ++ _ -> true;
|
||||
_ -> false
|
||||
end.
|
||||
|
||||
@@ -253,9 +253,9 @@ abspath_to_name(FP) ->
|
||||
|
||||
-spec ls_test_erls() -> AbsPaths when
|
||||
AbsPaths :: [string()].
|
||||
% @doc ["/path/to/gsc/test/foo.erl",
|
||||
% "/path/to/gsc/test/bar.erl",
|
||||
% "/path/to/gsc/test/baz.erl"]
|
||||
% @doc ["/path/to/sfc/test/foo.erl",
|
||||
% "/path/to/sfc/test/bar.erl",
|
||||
% "/path/to/sfc/test/baz.erl"]
|
||||
|
||||
ls_test_erls() ->
|
||||
lists:filter(fun is_erl/1, ls_test()).
|
||||
@@ -306,9 +306,9 @@ is_erl(Filename) ->
|
||||
% @doc
|
||||
% Includes junk/irrelevant files:
|
||||
%
|
||||
% ["/path/to/gsc/test/foo.erl",
|
||||
% "/path/to/gsc/test/.foo.erl.swp",
|
||||
% "/path/to/gsc/test/bar.erl"]
|
||||
% ["/path/to/sfc/test/foo.erl",
|
||||
% "/path/to/sfc/test/.foo.erl.swp",
|
||||
% "/path/to/sfc/test/bar.erl"]
|
||||
|
||||
ls_test() ->
|
||||
TD = test_dir(),
|
||||
@@ -324,7 +324,7 @@ ls_pwd() ->
|
||||
|
||||
-spec test_dir() -> AbsPath when
|
||||
AbsPath :: string().
|
||||
% @doc "/path/to/gsc/test"
|
||||
% @doc "/path/to/sfc/test"
|
||||
|
||||
test_dir() ->
|
||||
zx_daemon:get_home() ++ "/test".
|
||||
@@ -334,7 +334,7 @@ test_dir() ->
|
||||
-spec ct_dir() -> AbsPath when
|
||||
AbsPath :: string().
|
||||
|
||||
% @doc "/path/to/gsc/test/ct"
|
||||
% @doc "/path/to/sfc/test/ct"
|
||||
%
|
||||
% directory containing the tests for the tokenizer
|
||||
ct_dir() ->
|
||||
|
||||
Reference in New Issue
Block a user