You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: core_test.go
    path of file: ./repos/mahjong-helper
    
    the code of the file until where you have to start completion: package main

import (
	"testing"
	"io/ioutil"
	"strings"
	"fmt"
	"encoding/json"
	"github.com/EndlessCheng/mahjong-helper/util/debug"
	"github.com/stretchr/testify/assert"
)

func Test_majsoul_analysis(t *testing.T) {
	debugMode = true

	logFile := "log/gamedata-x.log"
	logData, err := ioutil.ReadFile(logFile)
	if err != nil {
		t.Fatal(err)
	}

	s := struct {
		Level   string `json:"level"`
		Message string `json:"mes
    
func Test_tenhou_analysis(t *testing.T) {
	debugMode = true

	logFile := "log/gamedata-20190715-201349.log"
	logData, err := ioutil.ReadFile(logFile)
	if err != nil {
		t.Fatal(err)
	}

	s := struct {
		Level   string `json:"level"`
		Message string `json:"message"`
	}{}

	// config
	startLo := -1
	endLo := -1

	tenhouRoundData := &tenhouRoundData{isRoundEnd: true}
	tenhouRoundData.roundData = newGame(tenhouRoundData)

	lines := strings.Split(string(logData), "\n")
	if startLo == -1 {
		// 取最近游戏的日志
		for i := len(lines) - 1; i >= 0; i-- {
			if strings.Contains(lines[i], "==============") {
				startLo = i + 3
				break
			}
		}
	}
	if endLo == -1 {
		endLo = len(lines)
	}

	for lo, line := range lines[startLo-1 : endLo] {
		debug.Lo = lo + 1
		fmt.Println(debug.Lo)
		if line == "" {
			continue
		}

		if err := json.Unmarshal([]byte(line), &s); err != nil {
			fmt.Println(err)
			continue
		}

		if s.Level != "INFO" {
			fmt.Println(s.Message)
			continue
		}

		msg := s.Message
		d := tenhouMessage{}
		if err := json.Unmarshal([]byte(msg), &d); err != nil {
			fmt.Println(err)
			continue
		}

		tenhouRoundData.msg = &d
		tenhouRoundData.originJSON = msg
		if err := tenhouRoundData.analysis(); err != nil {
			fmt.Println("错误：", err)
		}
	}
}