blob: b3f1c702d3f171a703d2421279069fc3937d28fb [file] [log] [blame]
Jens Geyer1e5fa4b2026-03-27 00:01:45 +01001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20/**
21 * Test file for UUIDv8 deterministic GUID generation.
22 * Covers: struct field-order sensitivity, service inheritance (parent hash),
23 * and various field/return types.
24 */
25
26namespace delphi UuidV8Test
27
28// --- Structs ---
29
30struct Point {
31 1: i32 x
32 2: i32 y
33}
34
35// Same fields as Point but in reverse order — must produce a different GUID
36struct PointReversed {
37 1: i32 y
38 2: i32 x
39}
40
41struct Container {
42 1: list<string> items
43 2: map<string, i32> counts
44 3: set<i32> flags
45}
46
47// --- Services ---
48
49service BaseService {
50 void ping()
51 string echo(1: string msg)
52}
53
54// Extends BaseService — GUID must incorporate parent's hash
55service ExtendedService extends BaseService {
56 i32 add(1: i32 a, 2: i32 b)
57 oneway void fire(1: string event)
58}