This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Fetch a package list and report which entries were installed/updated on this | |
| machine after a cutoff date, along with the latest action date for each. | |
| Source list: a HedgeDoc note containing one package name per line. | |
| Install history: /var/log/pacman.log ([ALPM] installed/upgraded lines). | |
| """ | |
| import re | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| christoph@thinkpad-sport ../GO/src/github.com/hikhvar/ts3exporter (git)-[master] % go test github.com/hikhvar/ts3exporter/pkg/serverquery | |
| ok github.com/hikhvar/ts3exporter/pkg/serverquery (cached) | |
| christoph@thinkpad-sport ../GO/src/github.com/hikhvar/ts3exporter (git)-[master] % vim pkg/serverquery/parser_test.go | |
| christoph@thinkpad-sport ../GO/src/github.com/hikhvar/ts3exporter (git)-[master] % go test github.com/hikhvar/ts3exporter/pkg/serverquery | |
| --- FAIL: TestParse (0.00s) | |
| --- FAIL: TestParse/channellist (0.00s) | |
| parser_test.go:65: | |
| Error Trace: parser_test.go:65 | |
| Error: Not equal: | |
| expected: serverquery.Result{Raw:"cid=1 pid=0 channel_name=Default\\sChannel|cid=8 pid=0 channel_name=Weiß\\snicht\\swie\\sman\\sTS\\sbeendet\\s(AFK)", Items:[]serverquery.Parsed{serverquery.Parsed{"channel_name":"Default Channel", "cid":"1", "pid":"1"}, serverquery.Parsed{"channel_name":"Weiß nicht wie man TS beendet (AFK)", "cid":"8", "pid":"0"}}} |