|
| 1 | +%%%----------------------------------------------------------------------------- |
| 2 | +%%% %CopyrightBegin% |
| 3 | +%%% |
| 4 | +%%% SPDX-License-Identifier: Apache-2.0 |
| 5 | +%%% |
| 6 | +%%% Copyright (c) Meta Platforms, Inc. and affiliates. |
| 7 | +%%% Copyright (c) WhatsApp LLC |
| 8 | +%%% |
| 9 | +%%% Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | +%%% you may not use this file except in compliance with the License. |
| 11 | +%%% You may obtain a copy of the License at |
| 12 | +%%% |
| 13 | +%%% http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | +%%% |
| 15 | +%%% Unless required by applicable law or agreed to in writing, software |
| 16 | +%%% distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | +%%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | +%%% See the License for the specific language governing permissions and |
| 19 | +%%% limitations under the License. |
| 20 | +%%% |
| 21 | +%%% %CopyrightEnd% |
| 22 | +%%%----------------------------------------------------------------------------- |
| 23 | +%%% % @format |
| 24 | +-module(merge_raft_test_app). |
| 25 | +-moduledoc """ |
| 26 | +""". |
| 27 | +- moduledoc #{ author => [ "Andrew Bennett <[email protected]>"]}. |
| 28 | +-moduledoc #{created => "2025-08-26", modified => "2025-08-26"}. |
| 29 | +-moduledoc #{copyright => "Meta Platforms, Inc. and affiliates."}. |
| 30 | +-compile(warn_missing_spec_all). |
| 31 | +-oncall("whatsapp_clr"). |
| 32 | + |
| 33 | +-behaviour(application). |
| 34 | + |
| 35 | +%% application callbacks |
| 36 | +-export([ |
| 37 | + start/2, |
| 38 | + stop/1 |
| 39 | +]). |
| 40 | + |
| 41 | +%%%============================================================================= |
| 42 | +%%% application callbacks |
| 43 | +%%%============================================================================= |
| 44 | + |
| 45 | +-spec start(StartType, StartArgs) -> {ok, Pid} | {ok, Pid, State} | {error, Reason} when |
| 46 | + StartType :: application:start_type(), |
| 47 | + StartArgs :: term(), |
| 48 | + Pid :: pid(), |
| 49 | + State :: term(), |
| 50 | + Reason :: term(). |
| 51 | +start(_StartType, _StartArgs) -> |
| 52 | + {ok, SupPid} = merge_raft_test_sup:start_link(), |
| 53 | + {ok, SupPid}. |
| 54 | + |
| 55 | +-spec stop(State) -> Ignored when |
| 56 | + State :: term(), |
| 57 | + Ignored :: term(). |
| 58 | +stop(_State) -> |
| 59 | + ok. |
| 60 | + |
| 61 | +%%%----------------------------------------------------------------------------- |
| 62 | +%%% Internal functions |
| 63 | +%%%----------------------------------------------------------------------------- |
0 commit comments