()
| 167 | } |
| 168 | |
| 169 | func ExampleDocument_GetWordAfterCursorWithSpace() { |
| 170 | d := &Document{ |
| 171 | Text: `Hello! my name is c-bata. |
| 172 | This is a example of Document component. |
| 173 | `, |
| 174 | cursorPosition: len(`Hello! my name is c-bata. |
| 175 | This is a`), |
| 176 | } |
| 177 | fmt.Println(d.GetWordAfterCursorWithSpace()) |
| 178 | // Output: |
| 179 | // example |
| 180 | } |
| 181 | |
| 182 | func ExampleDocument_GetWordBeforeCursorUntilSeparator() { |
| 183 | d := &Document{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…