From 6038c474b7571f92e615f7cf9e20cfc97360b3af Mon Sep 17 00:00:00 2001 From: andrea Date: Mon, 13 Nov 2023 21:03:11 +0100 Subject: [PATCH] Remove comment lines --- store/file/quiz_test.go | 39 --------------------------- store/file/testdata/quizzes/quiz_5.md | 4 +-- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/store/file/quiz_test.go b/store/file/quiz_test.go index 32bdcd3..70c3c61 100644 --- a/store/file/quiz_test.go +++ b/store/file/quiz_test.go @@ -184,45 +184,6 @@ func (t *quizTestSuite) TestAutowriteHeader() { } } -// func (t *quizTestSuite) TestReadMetaHeaderFromFile() { -// store, err := NewFileProboCollectorStore(testdataDir) -// t.True(err == nil, fmt.Sprintf("A file store should be initialized without problems but an error occurred: %v", err)) -// meta, err := store.ReadMetaHeaderFromFile("quiz_4.md") -// t.True(err == nil, fmt.Sprintf("An error occurred: %v", err)) -// if !t.Failed() { -// t.True(meta.ID != "") -// t.True(meta.CreatedAt.String() != "") -// } -// } - -// func (t *quizTestSuite) TestWriteMetaHeaderToFile() { -// store, err := NewFileProboCollectorStore(testdataDir) - -// t.True(err == nil, fmt.Sprintf("A file store should be initialized without problems but an error occurred: %v", err)) - -// if !t.Failed() { -// meta, err := store.ReadMetaHeaderFromFile("quiz_5.md") -// t.True(err == nil, fmt.Sprintf("Reading the header returns the following error: %v", err)) -// if !t.Failed() { -// t.True(meta != nil, "Meta header should not be nil") - -// if !t.Failed() { -// t.True(meta.ID != "", "ID should not be empty") - -// if !t.Failed() { -// _, err = store.removeMetaFromFile("quiz_5.md") -// t.True(err == nil) -// } -// } -// } -// } -// } - -// func createQuizOnDisk(store *FileProboCollectorStore, req *client.CreateUpdateQuizRequest) (*models.Quiz, error) { -// return store.CreateQuiz(req) - -// } - func readQuizFromDisk(path string) (*models.Quiz, *models.Meta, error) { content, err := os.ReadFile(path) if err != nil { diff --git a/store/file/testdata/quizzes/quiz_5.md b/store/file/testdata/quizzes/quiz_5.md index b2585dc..efe4d22 100644 --- a/store/file/testdata/quizzes/quiz_5.md +++ b/store/file/testdata/quizzes/quiz_5.md @@ -1,6 +1,6 @@ --- -id: 5ebab010-8e96-41c9-905d-a092da037194 -created_at: 2023-11-13T20:58:30.651064703+01:00 +id: 57ebde24-51a0-421e-a641-4a5c198473c3 +created_at: 2023-11-13T21:02:55.786449849+01:00 updated_at: 0001-01-01T00:00:00Z --- This quiz is initially without metadata.