Remove comment lines
This commit is contained in:
parent
45bcf24ecf
commit
6038c474b7
2 changed files with 2 additions and 41 deletions
|
@ -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 {
|
||||
|
|
4
store/file/testdata/quizzes/quiz_5.md
vendored
4
store/file/testdata/quizzes/quiz_5.md
vendored
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue