Complete first release candidate audit (#107)
Some checks failed
API and SemVer surface / api-surface (push) Failing after 1m34s
Native code generation / deterministic (push) Has been cancelled
Concurrency and resource soak audit / soak (push) Has been cancelled
Documentation / documentation (push) Has been cancelled
performance evidence / audit (push) Has been cancelled
First release candidate / non-fuzz-release-gate (push) Has been cancelled
Release platform and feature matrix / audit (push) Has been cancelled
Release platform and feature matrix / matrix (false, linux-stable-minimal, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (false, macos-stable-portable, x86_64-apple-darwin, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (false, windows-stable-portable, x86_64-pc-windows-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-msrv-portable, x86_64-unknown-linux-gnu, 1.96.0) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-default, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-features, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-release-surface, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Dependency and supply-chain audit / audit (push) Has been cancelled
Native release artifact audit / audit (push) Has been cancelled
Imaging and meshing gate / native (push) Failing after 53s
JPEG 2000 feature / linux (push) Successful in 2m49s
Native Rust workspace compile / compile (push) Failing after 59s
Skia feature / linux (push) Has been cancelled
Some checks failed
API and SemVer surface / api-surface (push) Failing after 1m34s
Native code generation / deterministic (push) Has been cancelled
Concurrency and resource soak audit / soak (push) Has been cancelled
Documentation / documentation (push) Has been cancelled
performance evidence / audit (push) Has been cancelled
First release candidate / non-fuzz-release-gate (push) Has been cancelled
Release platform and feature matrix / audit (push) Has been cancelled
Release platform and feature matrix / matrix (false, linux-stable-minimal, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (false, macos-stable-portable, x86_64-apple-darwin, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (false, windows-stable-portable, x86_64-pc-windows-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-msrv-portable, x86_64-unknown-linux-gnu, 1.96.0) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-default, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-features, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Release platform and feature matrix / matrix (true, linux-stable-release-surface, x86_64-unknown-linux-gnu, stable) (push) Has been cancelled
Dependency and supply-chain audit / audit (push) Has been cancelled
Native release artifact audit / audit (push) Has been cancelled
Imaging and meshing gate / native (push) Failing after 53s
JPEG 2000 feature / linux (push) Successful in 2m49s
Native Rust workspace compile / compile (push) Failing after 59s
Skia feature / linux (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
//! Behavioral checks for the mutable WebRTC voice data models.
|
||||
|
||||
use libremetaverse_types::UUID;
|
||||
use libremetaverse_voice_webrtc::{
|
||||
VoiceSessionAvatarPosition, VoiceSessionInt3, VoiceSessionInt4, VoiceSessionPeerAudioState,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn peer_audio_state_uses_clr_defaults_and_round_trips_updates() {
|
||||
let mut state = VoiceSessionPeerAudioState::new().expect("PeerAudioState");
|
||||
assert_eq!(state.power(), None);
|
||||
assert_eq!(state.voice_active(), None);
|
||||
assert_eq!(state.joined_primary(), None);
|
||||
assert_eq!(state.moderator_muted(), None);
|
||||
assert!(!state.left());
|
||||
|
||||
state.set_power(Some(Some(37)));
|
||||
state.set_voice_active(Some(Some(true)));
|
||||
state.set_joined_primary(Some(Some(false)));
|
||||
state.set_moderator_muted(Some(Some(true)));
|
||||
state.set_left(true);
|
||||
|
||||
assert_eq!(state.power(), Some(Some(37)));
|
||||
assert_eq!(state.voice_active(), Some(Some(true)));
|
||||
assert_eq!(state.joined_primary(), Some(Some(false)));
|
||||
assert_eq!(state.moderator_muted(), Some(Some(true)));
|
||||
assert!(state.left());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn avatar_position_round_trips_typed_coordinates() {
|
||||
let mut position = VoiceSessionAvatarPosition::new().expect("AvatarPosition");
|
||||
let agent = UUID::new_with_u_int64(44).expect("UUID");
|
||||
let xyz = VoiceSessionInt3 { x: 1, y: 2, z: 3 };
|
||||
let xyzw = VoiceSessionInt4 {
|
||||
x: 4,
|
||||
y: 5,
|
||||
z: 6,
|
||||
w: 7,
|
||||
};
|
||||
|
||||
assert_eq!(position.agent_id(), UUID::zero());
|
||||
position.set_agent_id(agent);
|
||||
position.set_sender_position(Some(Some(xyz)));
|
||||
position.set_listener_heading(Some(Some(xyzw)));
|
||||
|
||||
assert_eq!(position.agent_id(), agent);
|
||||
assert_eq!(position.sender_position(), Some(Some(xyz)));
|
||||
assert_eq!(position.listener_heading(), Some(Some(xyzw)));
|
||||
}
|
||||
Reference in New Issue
Block a user