test - move like outlook - GODT-536

This commit is contained in:
Jakub
2020-08-18 10:58:39 +02:00
committed by Michal Horejsek
parent 730abadfc3
commit ec9a799fe9
4 changed files with 78 additions and 2 deletions

View File

@ -18,13 +18,13 @@
package mocks
import (
"bufio"
"fmt"
"io"
"regexp"
"strings"
"time"
"github.com/emersion/go-imap"
"github.com/pkg/errors"
a "github.com/stretchr/testify/assert"
)
@ -37,7 +37,9 @@ type IMAPResponse struct {
done bool
}
func (ir *IMAPResponse) sendCommand(reqTag string, reqIndex int, command string, debug *debug, conn io.Writer, response imap.StringReader) {
func (ir *IMAPResponse) Sections() []string { return ir.sections }
func (ir *IMAPResponse) sendCommand(reqTag string, reqIndex int, command string, debug *debug, conn io.Writer, response *bufio.Reader) {
defer func() { ir.done = true }()
tstart := time.Now()