rename to smartpack n smartunpack

This commit is contained in:
2026-05-18 19:30:58 +07:00
parent cc95bc97d3
commit 396e0848da
21 changed files with 323 additions and 314 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env julia
# Test script for mixed-content message testing
# Tests sending a mix of text, dictionary, arrowtable, jsontable, image, audio, video, and binary data
# from Julia serviceA to Julia serviceB using msghandler.jl smartsend
# from Julia serviceA to Julia serviceB using msghandler.jl smartpack
#
# This test demonstrates that any combination and any number of mixed content
# can be sent and received correctly.
@@ -166,7 +166,7 @@ function create_sample_data()
end
# Sender: Send mixed content via smartsend
# Sender: Send mixed content via smartpack
function test_mix_send()
# Create sample data
(text_data, dict_data, arrow_table_small, arrow_table_large, json_table_small, json_table_large, audio_data, large_audio_data, video_data, large_video_data, binary_data, large_binary_data) = create_sample_data()
@@ -203,8 +203,8 @@ function test_mix_send()
("binary_file_large", large_binary_data, "binary")
]
# Use smartsend with mixed content
sendinfo = msghandler.smartsend(
# Use smartpack with mixed content
sendinfo = msghandler.smartpack(
SUBJECT,
payloads; # List of (dataname, data, type) tuples
broker_url = NATS_URL,
@@ -251,7 +251,7 @@ println("Starting mixed-content transport test...")
println("Correlation ID: $correlation_id")
# Run sender
println("start smartsend for mixed content")
println("start smartpack for mixed content")
test_mix_send()
println("\nTest completed.")