File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ // Copyright (C) 2023-2025 RabbitMQ Core Team ([email protected] ) 2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+ mod test_helpers;
15+
16+ use rabbitmq_http_client:: responses:: Overview ;
17+
18+ #[ test]
19+ fn test_unit_overview_has_jit_enabled_with_jit ( ) {
20+ let overview = Overview {
21+ erlang_full_version : "Erlang/OTP 26 [erts-14.2.5.11] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]" . to_string ( ) ,
22+ ..Default :: default ( )
23+ } ;
24+
25+ assert ! ( overview. has_jit_enabled( ) ) ;
26+ }
27+
28+ #[ test]
29+ fn test_unit_overview_has_jit_enabled_without_jit ( ) {
30+ let overview = Overview {
31+ erlang_full_version : "Erlang/OTP 26 [erts-14.2.5.11] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1]" . to_string ( ) ,
32+ ..Default :: default ( )
33+ } ;
34+
35+ assert ! ( !overview. has_jit_enabled( ) ) ;
36+ }
You can’t perform that action at this time.
0 commit comments