Skip to content

Commit

Permalink
Evaluate all/0 and groups/0 in one go
Browse files Browse the repository at this point in the history
Summary: Instead of having two separate requests, let's have only one.

Reviewed By: michalmuskala

Differential Revision: D50691891

fbshipit-source-id: b5207716d270d1a010d57f95501ee1af5cb71927
  • Loading branch information
robertoaloi authored and facebook-github-bot committed Oct 27, 2023
1 parent 928d26a commit 0c8ee9f
Show file tree
Hide file tree
Showing 17 changed files with 134 additions and 173 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-module(common_test_SUITE).
-module(ct_info_SUITE).

-export([all/0, groups/0]).
-export([a/1, b/1, c/1]).
Expand Down
5 changes: 5 additions & 0 deletions crates/erlang_service/fixtures/ct_info_SUITE.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CT_INFO_ALL
['a',{'group','group_a'}]

CT_INFO_GROUPS
[{'group_a',['b','c']}]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-module(common_test_dynamic_SUITE).
-module(ct_info_dynamic_SUITE).

-export([all/0, groups/0]).
-export([a/1, b/1, c/1]).
Expand Down
5 changes: 5 additions & 0 deletions crates/erlang_service/fixtures/ct_info_dynamic_SUITE.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CT_INFO_ALL
['a',{'group','group_a'}]

CT_INFO_GROUPS
[{'group_a',['b','c']}]
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-module(common_test_exception_SUITE).
-module(ct_info_exception_SUITE).

-export([all/0, groups/0]).
-export([a/1, b/1, c/1]).

all() -> {not_valid}.
all() -> throw({not_valid}).

groups() -> [{group_a, [b, c]}].

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Failed to fetch CT Info for "ct_info_exception_SUITE"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-module(common_test_incomplete_SUITE).
-module(ct_info_incomplete_SUITE).

-export([all/0, groups/0]).
-export([a/1, b/1, c/1]).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Failed to fetch CT Info for "ct_info_incomplete_SUITE"
Loading

0 comments on commit 0c8ee9f

Please sign in to comment.