4
%% Copyright Ericsson AB 2005-2011. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
21
-module(test_records).
23
-export(['check_record_names_OTP-5812'/1]).
25
%-include("test_server.hrl").
26
%-include_lib("test_server/include/test_server.hrl").
28
-define(line,put(test_server_loc,{?MODULE,?LINE}),).
30
-include("NBAP-PDU-Discriptions.hrl").
31
-include("NBAP-PDU-Contents.hrl").
32
-include("NBAP-Containers.hrl").
33
-include("NBAP-CommonDataTypes.hrl").
34
-include("NBAP-IEs.hrl").
39
'check_record_names_OTP-5812'(Msg) ->
40
io:format("Msg: ~n~p~n",[Msg]),
41
check_record_names(Msg).
43
check_record_names({initiatingMessage,
44
#'InitiatingMessage'{procedureID = ProcedureID,
45
criticality = _Criticality,
46
messageDiscriminator = _MessageDisc,
47
transactionID = _TransactionID,
50
?line ok = check_record_ProcedureID(ProcedureID),
51
?line ok = check_record_Value(Value).
53
check_record_ProcedureID(#'ProcedureID'{}) ->
55
check_record_ProcedureID(_) -> false.
57
check_record_Value(#'ResourceStatusIndication'{protocolIEs = ProtocolIEs}) ->
58
?line ok = check_record_ProtocolIEs(ProtocolIEs);
59
check_record_Value(_) -> false.
61
check_record_ProtocolIEs([#'ProtocolIE-Field'{value =IndicationType}|_]) ->
62
?line ok = check_record_NFResourceStatusInd(IndicationType);
63
check_record_ProtocolIEs(_) -> false.
65
check_record_NFResourceStatusInd({'no-Failure',#'No-Failure-ResourceStatusInd'{'local-Cell-InformationList'=[LCIPF]}}) ->
66
'check_record_NFResourceStatusInd_ProtocolIE-Field'(LCIPF);
67
check_record_NFResourceStatusInd(_) -> false.
69
'check_record_NFResourceStatusInd_ProtocolIE-Field'(#'ProtocolIE-Field'{value=LCI}) ->
70
?line ok = check_record_LCInfoResourceStatusInd(LCI);
71
'check_record_NFResourceStatusInd_ProtocolIE-Field'(_) -> false.
73
check_record_LCInfoResourceStatusInd(#'Local-Cell-InformationItem-ResourceStatusInd'{commonChannelsCapacityConsumptionLaw=[CCCCL],dedicatedChannelsCapacityConsumptionLaw=[DCCCL],'iE-Extensions' = [LCIRE]}) ->
74
?line ok = check_record_CCCCL(CCCCL),
75
?line ok = check_record_DCCCL(DCCCL),
76
?line ok = check_record_LCIRE(LCIRE).
78
check_record_CCCCL(#'CommonChannelsCapacityConsumptionLaw_SEQOF'{}) ->
80
check_record_CCCCL(_) -> false.
82
check_record_DCCCL(#'DedicatedChannelsCapacityConsumptionLaw_SEQOF'{}) ->
84
check_record_DCCCL(_) -> false.
85
check_record_LCIRE(#'ProtocolExtensionField'{}) ->
87
check_record_LCIRE(_) -> false.