AYAB Arduino Firmware 0.95
The goal of the AYAB project is to provide an alternative way to control the famous Brother KH-9xx range of knitting machines using a computer
test_knitter.cpp File Reference
#include <gtest/gtest.h>
#include <board.h>
#include <knitter.h>
#include <beeper_mock.h>
#include <com_mock.h>
#include <encoders_mock.h>
#include <fsm_mock.h>
#include <solenoids_mock.h>
#include <tester_mock.h>
Include dependency graph for test_knitter.cpp:

Classes

class  KnitterTest
 

Functions

 TEST_F (KnitterTest, test_send)
 
 TEST_F (KnitterTest, test_isr)
 
 TEST_F (KnitterTest, test_startKnitting_NoMachine)
 
 TEST_F (KnitterTest, test_startKnitting_invalidMachine)
 
 TEST_F (KnitterTest, test_startKnitting_notReady)
 
 TEST_F (KnitterTest, test_startKnitting_Kh910)
 
 TEST_F (KnitterTest, test_startKnitting_Kh270)
 
 TEST_F (KnitterTest, test_startKnitting_failures)
 
 TEST_F (KnitterTest, test_setNextLine)
 
 TEST_F (KnitterTest, test_knit_Kh910)
 
 TEST_F (KnitterTest, test_knit_Kh270)
 
 TEST_F (KnitterTest, test_knit_line_request)
 
 TEST_F (KnitterTest, test_knit_lastLine)
 
 TEST_F (KnitterTest, test_knit_lastLine_and_no_req)
 
 TEST_F (KnitterTest, test_knit_same_position)
 
 TEST_F (KnitterTest, test_knit_new_line)
 
 TEST_F (KnitterTest, test_calculatePixelAndSolenoid)
 
 TEST_F (KnitterTest, test_getStartOffset)
 
 TEST_F (KnitterTest, test_fsm_init_LL)
 
 TEST_F (KnitterTest, test_fsm_init_RR)
 
 TEST_F (KnitterTest, test_fsm_init_RL)
 
 TEST_F (KnitterTest, test_fsm_init_LR)
 

Variables

Knitterknitter
 
Fsmfsm
 
BeeperMockbeeper
 
ComMockcom
 
EncodersMockencoders
 
SolenoidsMocksolenoids
 
TesterMocktester
 

Detailed Description

`

This file is part of AYAB.

AYAB is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

AYAB is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with AYAB. If not, see http://www.gnu.org/licenses/.

Original Work Copyright 2013 Christian Obersteiner, Andreas Müller Modified Work Copyright 2020 Sturla Lange, Tom Price http://ayab-knitting.com