mocked

package
v0.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppView

type AppView struct {
	mock.Mock
}

func (*AppView) SelectOpenFile

func (m *AppView) SelectOpenFile(title string, patterns ...string) (string, bool, error)

func (*AppView) SelectSaveFile

func (m *AppView) SelectSaveFile(title string, patterns ...string) (string, bool, error)

func (*AppView) ShowErrorDialog

func (m *AppView) ShowErrorDialog(format string, args ...interface{})

func (*AppView) ShowFilename

func (m *AppView) ShowFilename(filename string)

func (*AppView) ShowInfoDialog

func (m *AppView) ShowInfoDialog(format string, args ...interface{})

type CWClient

type CWClient struct {
	mock.Mock
}

func (*CWClient) Abort

func (m *CWClient) Abort()

func (*CWClient) Connect

func (m *CWClient) Connect() error

func (*CWClient) Disconnect

func (m *CWClient) Disconnect()

func (*CWClient) IsConnected

func (m *CWClient) IsConnected() bool

func (*CWClient) Send

func (m *CWClient) Send(text string)

func (*CWClient) Speed

func (m *CWClient) Speed(speed int)

type Clock

type Clock struct {
	mock.Mock
}

func (*Clock) Now

func (m *Clock) Now() time.Time

type DXCCFinder

type DXCCFinder struct {
	mock.Mock
}

func (*DXCCFinder) Find

func (m *DXCCFinder) Find(callsign string) (dxcc.Prefix, bool)

type EntryView

type EntryView struct {
	mock.Mock
	// contains filtered or unexported fields
}

func (*EntryView) Activate

func (m *EntryView) Activate()

func (*EntryView) ClearMessage

func (m *EntryView) ClearMessage()

func (*EntryView) SelectText added in v0.13.0

func (m *EntryView) SelectText(field core.EntryField, s string)

func (*EntryView) SetActiveField

func (m *EntryView) SetActiveField(field core.EntryField)

func (*EntryView) SetBand

func (m *EntryView) SetBand(text string)

func (*EntryView) SetCallsign

func (m *EntryView) SetCallsign(callsign string)

func (*EntryView) SetDuplicateMarker

func (m *EntryView) SetDuplicateMarker(active bool)

func (*EntryView) SetEditingMarker

func (m *EntryView) SetEditingMarker(active bool)

func (*EntryView) SetFrequency added in v0.4.0

func (m *EntryView) SetFrequency(frequency core.Frequency)

func (*EntryView) SetMode

func (m *EntryView) SetMode(text string)

func (*EntryView) SetMyCall added in v0.5.0

func (m *EntryView) SetMyCall(mycall string)

func (*EntryView) SetMyExchange added in v0.10.0

func (m *EntryView) SetMyExchange(index int, value string)

func (*EntryView) SetMyExchangeFields added in v0.10.0

func (m *EntryView) SetMyExchangeFields(fields []core.ExchangeField)

func (*EntryView) SetTheirExchange added in v0.10.0

func (m *EntryView) SetTheirExchange(index int, value string)

func (*EntryView) SetTheirExchangeFields added in v0.10.0

func (m *EntryView) SetTheirExchangeFields(fields []core.ExchangeField)

func (*EntryView) SetUTC added in v0.5.0

func (m *EntryView) SetUTC(utc string)

func (*EntryView) ShowMessage

func (m *EntryView) ShowMessage(args ...interface{})

type KeyerView

type KeyerView struct {
	mock.Mock
}

func (*KeyerView) Pattern

func (m *KeyerView) Pattern(index int) string

func (*KeyerView) SetPattern

func (m *KeyerView) SetPattern(index int, pattern string)

func (*KeyerView) SetPreset added in v0.12.0

func (m *KeyerView) SetPreset(name string)

func (*KeyerView) SetPresetNames added in v0.12.0

func (m *KeyerView) SetPresetNames(names []string)

func (*KeyerView) SetSpeed

func (m *KeyerView) SetSpeed(speed int)

func (*KeyerView) ShowMessage

func (m *KeyerView) ShowMessage(args ...interface{})

func (*KeyerView) Speed

func (m *KeyerView) Speed() int

type Log

type Log struct {
	mock.Mock
	// contains filtered or unexported fields
}

func (*Log) Activate

func (m *Log) Activate()

func (*Log) ClearRowAddedListeners

func (m *Log) ClearRowAddedListeners()

func (*Log) LastBand added in v0.2.0

func (m *Log) LastBand() core.Band

func (*Log) LastExchange added in v0.10.0

func (m *Log) LastExchange() []string

func (*Log) LastMode added in v0.2.0

func (m *Log) LastMode() core.Mode

func (*Log) Log

func (m *Log) Log(qso core.QSO)

func (*Log) NextNumber

func (m *Log) NextNumber() core.QSONumber

func (*Log) QsosOrderedByMyNumber

func (m *Log) QsosOrderedByMyNumber() []core.QSO

func (*Log) UniqueQsosOrderedByMyNumber

func (m *Log) UniqueQsosOrderedByMyNumber() []core.QSO

type LogbookView

type LogbookView struct {
	mock.Mock
}

func (*LogbookView) RowAdded

func (m *LogbookView) RowAdded(qso core.QSO)

func (*LogbookView) UpdateAllRows

func (m *LogbookView) UpdateAllRows(qsos []core.QSO)

type QSOList

type QSOList struct {
	mock.Mock
	// contains filtered or unexported fields
}

func (*QSOList) Activate

func (m *QSOList) Activate()

func (*QSOList) Find

func (m *QSOList) Find(callsign callsign.Callsign, band core.Band, mode core.Mode) []core.QSO

func (*QSOList) FindDuplicateQSOs added in v0.4.0

func (m *QSOList) FindDuplicateQSOs(callsign callsign.Callsign, band core.Band, mode core.Mode) []core.QSO

func (*QSOList) FindWorkedQSOs added in v0.4.0

func (m *QSOList) FindWorkedQSOs(callsign callsign.Callsign, band core.Band, mode core.Mode) ([]core.QSO, bool)

func (*QSOList) LastBandAndMode added in v0.11.0

func (m *QSOList) LastBandAndMode() (core.Band, core.Mode)

func (*QSOList) SelectLastQSO

func (m *QSOList) SelectLastQSO()

func (*QSOList) SelectQSO

func (m *QSOList) SelectQSO(qso core.QSO)

type Reader

type Reader struct {
	mock.Mock
}

func (*Reader) ReadAllQSOs added in v0.6.0

func (m *Reader) ReadAllQSOs() ([]core.QSO, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL