]> git.giacomolli.uk - onechat/blobdiff - probe_log_helper_test.go
Separate multiline Go statements
[onechat] / probe_log_helper_test.go
index 0097ddabc9e04ceba39d83d6383b58642d4ff2fb..7df9f489b3688bb2cbe56de10397934be1d30cae 100644 (file)
@@ -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"}
-)