<commit_before><?php
/**
 *
 * @author malinink
 */
use App\User;
use App\GameType;
use App\Game;

use App\UserIngameInfo;

class ModelsFactoriesTest extends TestCase
{
    /**
     * Test User Factory
     *
     * @return void
     */
    public function testUserFactory()
    {
        $user = factory(User::class)->create();
        $user->delete();
    }

    /**
     * Test GameType Factory
     *
     * @return void
     */
    public function testGameTypeFactory()
    {
        $gameType = factory(GameType::class)->create();
        $gameType->delete();
    }
    
    /**
     * Test Game Factory
     *
     * @return void
     */
    public function testGameFactory()
    {
        $game = factory(Game::class)->create();
        $game->delete();
        /*
         * Delete related autogenerated models also
         */
        $game->gameType->delete();
    }
    
    /**
     * Test UserIngameInfo Factory
     *
     * @return void
     */
    public function testUserIngameInfoFactory()
    {
        $user_ingame = factory(UserIngameInfo::class)->make();
        $user_ingame->save();
        $user_ingame->delete();
        /*
         * Delete related autogenerated models also
         */
        $user_ingame->gameType->delete();
        $user_ingame->user->delete();
    }
}<commit_msg>add tests for BoardInfo, TurnInfo and UserGame factories<commit_after><?php
/**
 *
 * @author malinink
 */
use App\User;
use App\GameType;
use App\Game;

use App\UserIngameInfo;

class ModelsFactoriesTest extends TestCase
{
    /**
     * Test User Factory
     *
     * @return void
     */
    public function testUserFactory()
    {
        $user = factory(User::class)->create();
        $user->delete();
    }

    /**
     * Test GameType Factory
     *
     * @return void
     */
    public function testGameTypeFactory()
    {
        $gameType = factory(GameType::class)->create();
        $gameType->delete();
    }
    
    /**
     * Test Game Factory
     *
     * @return void
     */
    public function testGameFactory()
    {
        $game = factory(Game::class)->create();
        $game->delete();
        /*
         * Delete related autogenerated models also
         */
        $game->gameType->delete();
    }
    
    /**
     * Test UserIngameInfo Factory
     *
     * @return void
     */
    public function testUserIngameInfoFactory()
    {
        $user_ingame = factory(UserIngameInfo::class)->make();
        $user_ingame->save();
        $user_ingame->delete();
        /*
         * Delete related autogenerated models also
         */
        $user_ingame->gameType->delete();
        $user_ingame->user->delete();
    }
    
    /**
     * Test BoardInfo Factory
     *
     * @return void
     */
    public function testBoardInfoFactory()
    {
        $boardInfo = factory(BoardInfo::class)->make();
        $boardInfo->save();
        $boardInfo->delete();
        $game = $boardInfo->game;
        /*
         * Delete related autogenerated models also
         */
        $boardInfo->game->delete();
        $game->gameType->delete();
    }
    
    /**
     * Test TurnInfo Factory
     *
     * @return void
     */
    public function testTurnInfoFactory()
    {
        $turnInfo = factory(TurnInfo::class)->make();
        $turnInfo->save();
        $turnInfo->delete();
        $game = $turnInfo->game;
        /*
         * Delete related autogenerated models also
         */
        $turnInfo->game->delete();
        $game->gameType->delete();
    }
    
    /**
     * Test UserGame Factory
     *
     * @return void
     */
    public function testUserGameFactory()
    {
        $userGame = factory(UserGame::class)->make();
        $userGame->save();
        $userGame->delete();
        /*
         * Delete related autogenerated models also
         */
        $userGame->game->delete();
        $userGame->user->delete();
    }
}
{'fraction_non_alphanumeric': 0.14091724314629772, 'fraction_numerical': 0.0, 'mean_word_length': 1.8086330935251798, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 56, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2242954', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1124, 'n_words': 214}