You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
596 B

local _, WBT = ...;
local TestUtil = {};
if type(WBT) == 'table' then -- True when loaded via WoW, but not UnitTest.
WBT.TestUtil = TestUtil;
end
function TestUtil.CreateShareMsg(bossname, servertime, t_since_death, shard_id)
local t = servertime - t_since_death;
local shard_id_part
if shard_id then
shard_id_part = "-" .. tostring(shard_id)
else
shard_id_part = "" -- Legacy. Can't happen any longer.
end
return "{rt8}"..bossname.."{rt8}: 6m 52s (WorldBossTimers:" .. tostring(t) .. shard_id_part .. ")";
end
return TestUtil;