webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions
comment_test.cpp File Reference
#include "PreprocessorTest.h"
#include "compiler/preprocessor/Token.h"

Classes

class  CommentTest
 
class  BlockCommentTest
 

Functions

 TEST_P (CommentTest, CommentIgnored)
 
 INSTANTIATE_TEST_CASE_P (LineComment, CommentTest, testing::Values("//foo\, "//foo", "//**/", "////", "//\"))
 
 INSTANTIATE_TEST_CASE_P (BlockComment, CommentTest, testing::Values("/*foo*/", "/*foo\/", "/*//*/", "/*/**/", "/***/", "/*\/"))
 
 TEST_F (BlockCommentTest, CommentReplacedWithSpace)
 
 TEST_F (BlockCommentTest, UnterminatedComment)
 

Function Documentation

◆ INSTANTIATE_TEST_CASE_P() [1/2]

INSTANTIATE_TEST_CASE_P ( LineComment  ,
CommentTest   
)

◆ INSTANTIATE_TEST_CASE_P() [2/2]

INSTANTIATE_TEST_CASE_P ( BlockComment  ,
CommentTest  ,
testing::Values("/*foo*/", "/*foo\", "/*//*/", "/*", "/*\")   
)

◆ TEST_F() [1/2]

TEST_F ( BlockCommentTest  ,
CommentReplacedWithSpace   
)

◆ TEST_F() [2/2]

TEST_F ( BlockCommentTest  ,
UnterminatedComment   
)

◆ TEST_P()

TEST_P ( CommentTest  ,
CommentIgnored   
)