X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/522d7fd117285e4e4ce3ea5ec9b5a1722521b681..80e348724041a694002fc38f57e8868b9b9a2be9:/probe_log_helper_test.go diff --git a/probe_log_helper_test.go b/probe_log_helper_test.go index 0097dda..7df9f48 100644 --- a/probe_log_helper_test.go +++ b/probe_log_helper_test.go @@ -10,6 +10,21 @@ import ( // probeMessages is the length of the generated log for the live probe. const probeMessages = 1000 +var ( + probePeople = []string{"Mara", "Joel", "Ines", "Tomas", "Priya", "Lena"} + probeBreads = []string{"rye", "sourdough", "baguette", "brioche", "spelt", "seed loaf"} + probeDays = []string{"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"} + probeThings = []string{"order form", "price list", "delivery route", "stock count", "invoice export", "oven schedule"} + probeProblems = []string{"shows the wrong total", "skips the last row", "is slow at noon", "loses the customer note", "rounds the tax down"} + probePlaces = []string{"the front page", "the weekly report", "the shared folder", "the admin menu"} + probeTasks = []string{"add a field for allergies", "send the invoices on Friday", "split the route in two", "print labels for the shelf"} + probeCauses = []string{"the date has no time zone", "the cache keeps old prices", "the loop stops one row early", "the form trims the note"} + probeChanges = []string{"the total to use cents", "the route to sort by street", "the export to add the tax line", "the form to keep the note"} + probePreferences = []string{"short answers", "a call before a change to prices", "invoices as PDF", "reports in the morning"} + probeFiles = []string{"orders/form.go", "prices/list.go", "routes/plan.go", "stock/count.go", "export/invoice.go", "ovens/schedule.go"} + probeModules = []string{"orders", "prices", "routes", "stock", "export", "ovens"} +) + // ProbeWriter writes readable made-up messages. type ProbeWriter struct { random *rand.Rand @@ -133,18 +148,3 @@ func probeLog(count int) []DatedMessage { return messages } - -var ( - probePeople = []string{"Mara", "Joel", "Ines", "Tomas", "Priya", "Lena"} - probeBreads = []string{"rye", "sourdough", "baguette", "brioche", "spelt", "seed loaf"} - probeDays = []string{"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"} - probeThings = []string{"order form", "price list", "delivery route", "stock count", "invoice export", "oven schedule"} - probeProblems = []string{"shows the wrong total", "skips the last row", "is slow at noon", "loses the customer note", "rounds the tax down"} - probePlaces = []string{"the front page", "the weekly report", "the shared folder", "the admin menu"} - probeTasks = []string{"add a field for allergies", "send the invoices on Friday", "split the route in two", "print labels for the shelf"} - probeCauses = []string{"the date has no time zone", "the cache keeps old prices", "the loop stops one row early", "the form trims the note"} - probeChanges = []string{"the total to use cents", "the route to sort by street", "the export to add the tax line", "the form to keep the note"} - probePreferences = []string{"short answers", "a call before a change to prices", "invoices as PDF", "reports in the morning"} - probeFiles = []string{"orders/form.go", "prices/list.go", "routes/plan.go", "stock/count.go", "export/invoice.go", "ovens/schedule.go"} - probeModules = []string{"orders", "prices", "routes", "stock", "export", "ovens"} -)