diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-11-13 11:55:30 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-11-13 11:58:24 +0100 |
commit | 0aee5f34c9f384656740666c6fdc03ccf537d2a3 (patch) | |
tree | ecbc11503ed6fb08b7cb495f65f66f5935f203ea /tests/wvw.rs | |
parent | 4a7af01b1d3cb1f4e0d1812d21b8e8ef216ee777 (diff) | |
download | evtclib-0aee5f34c9f384656740666c6fdc03ccf537d2a3.tar.gz evtclib-0aee5f34c9f384656740666c6fdc03ccf537d2a3.tar.bz2 evtclib-0aee5f34c9f384656740666c6fdc03ccf537d2a3.zip |
Add a "is_generic" to detect WvW logs
The wording on the evtc README is
> an npcid of 1 indicates log is generic - triggers by squadmember
> entering combat and not as a result of a boss species id.
It is not quite clear whether "generic" implies WvW or if there are PvE
generic logs as well if you manage to set up arcdps in the right way.
Therefore, the wording in evtclib is rather unspecific as well.
Diffstat (limited to 'tests/wvw.rs')
-rw-r--r-- | tests/wvw.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/wvw.rs b/tests/wvw.rs new file mode 100644 index 0000000..5af15c7 --- /dev/null +++ b/tests/wvw.rs @@ -0,0 +1,11 @@ +//! Tests for WvW log parsing. +//! +//! WvW logs are a bit special in some regards (no proper boss ID, players with autogenerated +//! names), so it is good to have some basic testing for those. + +#[test] +fn test_smoke() { + let log = "./tests/logs/wvw-20211112.zevtc"; + let log = evtclib::process_file(log, evtclib::Compression::Zip).unwrap(); + assert!(log.is_generic()); +} |